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

Add support for QPC timer.

This commit is contained in:
Bartosz Taudul
2020-04-07 22:01:31 +02:00
parent 34b512d04b
commit b69aaf04e9
3 changed files with 24 additions and 1 deletions
+4
View File
@@ -226,7 +226,11 @@ bool SysTraceStart( int64_t& samplingPeriod )
s_prop->LogFileMode = EVENT_TRACE_REAL_TIME_MODE;
s_prop->Wnode.BufferSize = psz;
s_prop->Wnode.Flags = WNODE_FLAG_TRACED_GUID;
#ifdef TRACY_TIMER_QPC
s_prop->Wnode.ClientContext = 1;
#else
s_prop->Wnode.ClientContext = 3;
#endif
s_prop->Wnode.Guid = SystemTraceControlGuid;
s_prop->BufferSize = 1024;
s_prop->LoggerNameOffset = sizeof( EVENT_TRACE_PROPERTIES );