1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Separate message type for context switch callstack samples.

This commit is contained in:
Bartosz Taudul
2021-12-21 14:05:07 +01:00
parent 0ba2c0a86e
commit d88bf2c7a8
5 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1401,7 +1401,7 @@ void SysTraceWorker( void* ptr )
{
auto trace = GetCallstackBlock( cnt, ring, traceOffset );
TracyLfqPrepare( QueueType::CallstackSample );
TracyLfqPrepare( QueueType::CallstackSampleContextSwitch );
MemWrite( &item->callstackSampleFat.time, t0 );
MemWrite( &item->callstackSampleFat.thread, prev_pid );
MemWrite( &item->callstackSampleFat.ptr, (uint64_t)trace );