mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
Context switch logger: get the processor cycle counter instead of time of a day
This commit is contained in:
parent
bbfe1896f8
commit
a78c92c33f
@ -14,7 +14,7 @@ probe scheduler.ctxswitch {
|
|||||||
next
|
next
|
||||||
|
|
||||||
//printf("Switch from %d(%s) to %d(%s) at %d\n",prev_tid, prev_task_name,next_tid,next_task_name, gettimeofday_ns())
|
//printf("Switch from %d(%s) to %d(%s) at %d\n",prev_tid, prev_task_name,next_tid,next_task_name, gettimeofday_ns())
|
||||||
printf("%d %d %d %s %d\n",gettimeofday_ns(),prev_tid, next_tid, next_task_name,next_pid )
|
printf("%d %d %d %s %d\n", get_cycles(), prev_tid, next_tid, next_task_name, next_pid)
|
||||||
//printf("%d %d %d\n",gettimeofday_ns(),prev_tid, next_tid )
|
//printf("%d %d %d\n",gettimeofday_ns(),prev_tid, next_tid )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user