From 42865d7c7b9b4c5958849a8bcf62b912b25687c2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 14 Aug 2019 15:14:36 +0200 Subject: [PATCH] Don't set x86-tsc clock on non-x86 platforms. --- client/TracySysTrace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 75bc76fa..bcc89886 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -209,7 +209,9 @@ bool SysTraceStart() if( !TraceWrite( TraceOptions, sizeof( TraceOptions ), "norecord-cmd", 13 ) ) return false; if( !TraceWrite( TraceOptions, sizeof( TraceOptions ), "norecord-tgid", 14 ) ) return false; if( !TraceWrite( TraceOptions, sizeof( TraceOptions ), "noirq-info", 11 ) ) return false; +#if defined TRACY_HW_TIMER && ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 ) if( !TraceWrite( TraceClock, sizeof( TraceClock ), "x86-tsc", 8 ) ) return false; +#endif if( !TraceWrite( SchedSwitch, sizeof( SchedSwitch ), "1", 2 ) ) return false; if( !TraceWrite( TracingOn, sizeof( TracingOn ), "1", 2 ) ) return false;