Profiler skeleton.

This commit is contained in:
Ben Vanik
2014-05-27 22:54:40 -07:00
parent f3f9d93017
commit 6486e0a48e
10 changed files with 249 additions and 0 deletions

View File

@@ -79,7 +79,9 @@ static uint32_t __stdcall xe_thread_callback_win32(void* param) {
}
}
xe::Profiler::ThreadEnter(thread->name);
thread->callback(thread->callback_param);
xe::Profiler::ThreadExit();
return 0;
}
#pragma warning(default : 6320; default : 6322)
@@ -118,7 +120,9 @@ static void* xe_thread_callback_pthreads(void* param) {
#else
pthread_setname_np(pthread_self(), thread->name);
#endif // OSX
xe::Profiler::ThreadEnter(thread->name);
thread->callback(thread->callback_param);
xe::Profiler::ThreadExit();
return 0;
}