mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-12 13:28:15 +00:00
Capture sys calls on windows.
Only active if TRACY_SYSCALLS is defined, due to the volume of generated data.
This commit is contained in:
@@ -1810,6 +1810,22 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
|
||||
MemWrite( &item->gpuTime.gpuTime, dt );
|
||||
break;
|
||||
}
|
||||
case QueueType::SysCallEnter:
|
||||
{
|
||||
int64_t t = MemRead<int64_t>( &item->sysCallEnter.time );
|
||||
int64_t dt = t - m_refTimeCtx;
|
||||
m_refTimeCtx = t;
|
||||
MemWrite( &item->sysCallEnter.time, dt );
|
||||
break;
|
||||
}
|
||||
case QueueType::SysCallExit:
|
||||
{
|
||||
int64_t t = MemRead<int64_t>( &item->sysCallExit.time );
|
||||
int64_t dt = t - m_refTimeCtx;
|
||||
m_refTimeCtx = t;
|
||||
MemWrite( &item->sysCallExit.time, dt );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
assert( false );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user