* The system profiler scheduling event structures sport nanotime_ts now.

* Adjusted the DebugAnalyzer to handle nanosecond times.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34546 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-12-07 22:56:29 +00:00
parent b2a2d5c065
commit d8d4b902cb
23 changed files with 454 additions and 208 deletions
+4 -3
View File
@@ -3,6 +3,7 @@
* Distributed under the terms of the MIT License.
*/
#include <system_profiler.h>
#include <AutoDeleter.h>
@@ -627,7 +628,7 @@ SystemProfiler::ThreadEnqueuedInRunQueue(struct thread* thread)
if (event == NULL)
return;
event->time = system_time();
event->time = system_time_nsecs();
event->thread = thread->id;
event->priority = thread->priority;
@@ -658,7 +659,7 @@ SystemProfiler::ThreadRemovedFromRunQueue(struct thread* thread)
if (event == NULL)
return;
event->time = system_time();
event->time = system_time_nsecs();
event->thread = thread->id;
fHeader->size = fBufferSize;
@@ -688,7 +689,7 @@ SystemProfiler::ThreadScheduled(struct thread* oldThread,
if (event == NULL)
return;
event->time = system_time();
event->time = system_time_nsecs();
event->thread = newThread->id;
event->previous_thread = oldThread->id;
event->previous_thread_state = oldThread->state;