mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't use EVENT_FILTER_EVENT_ID, etc with SDK < Win 8.1.
This commit is contained in:
parent
9e51e3fa85
commit
4dae36cb73
@ -248,6 +248,7 @@ void WINAPI EventRecordCallbackVsync( PEVENT_RECORD record )
|
|||||||
|
|
||||||
static void SetupVsync()
|
static void SetupVsync()
|
||||||
{
|
{
|
||||||
|
#if _WIN32_WINNT >= _WIN32_WINNT_WINBLUE
|
||||||
const auto psz = sizeof( EVENT_TRACE_PROPERTIES ) + MAX_PATH;
|
const auto psz = sizeof( EVENT_TRACE_PROPERTIES ) + MAX_PATH;
|
||||||
s_propVsync = (EVENT_TRACE_PROPERTIES*)tracy_malloc( psz );
|
s_propVsync = (EVENT_TRACE_PROPERTIES*)tracy_malloc( psz );
|
||||||
memset( s_propVsync, 0, sizeof( EVENT_TRACE_PROPERTIES ) );
|
memset( s_propVsync, 0, sizeof( EVENT_TRACE_PROPERTIES ) );
|
||||||
@ -325,6 +326,7 @@ static void SetupVsync()
|
|||||||
SetThreadName( "Tracy Vsync" );
|
SetThreadName( "Tracy Vsync" );
|
||||||
ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr );
|
ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr );
|
||||||
}, nullptr );
|
}, nullptr );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SysTraceStart( int64_t& samplingPeriod )
|
bool SysTraceStart( int64_t& samplingPeriod )
|
||||||
|
Loading…
Reference in New Issue
Block a user