mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Print context switch event data.
This commit is contained in:
parent
f7730659f8
commit
60042d1944
@ -155,6 +155,9 @@ void EventDebug( const QueueItem& ev )
|
||||
break;
|
||||
case QueueType::ContextSwitch:
|
||||
fprintf( f, "ev %i (ContextSwitch)\n", ev.hdr.idx );
|
||||
fprintf( f, "\ttime = %" PRIi64 "\n", ev.contextSwitch.time );
|
||||
fprintf( f, "\tthread = %" PRIu32 " -> %" PRIu32 "\n", ev.contextSwitch.oldThread, ev.contextSwitch.newThread );
|
||||
fprintf( f, "\tcpu = %" PRIu8 ", reason = %" PRIu8 ", state = %" PRIu8 "\n", ev.contextSwitch.cpu, ev.contextSwitch.reason, ev.contextSwitch.state );
|
||||
break;
|
||||
case QueueType::ThreadWakeup:
|
||||
fprintf( f, "ev %i (ThreadWakeup)\n", ev.hdr.idx );
|
||||
|
Loading…
Reference in New Issue
Block a user