mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Tune number of ETW kernel buffers.
This commit is contained in:
parent
6d5717e48b
commit
16ad6ee2ac
@ -380,6 +380,8 @@ bool SysTraceStart( int64_t& samplingPeriod )
|
||||
#endif
|
||||
s_prop->Wnode.Guid = SystemTraceControlGuid;
|
||||
s_prop->BufferSize = 1024;
|
||||
s_prop->MinimumBuffers = std::thread::hardware_concurrency() * 4;
|
||||
s_prop->MaximumBuffers = std::thread::hardware_concurrency() * 6;
|
||||
s_prop->LoggerNameOffset = sizeof( EVENT_TRACE_PROPERTIES );
|
||||
memcpy( ((char*)s_prop) + sizeof( EVENT_TRACE_PROPERTIES ), KERNEL_LOGGER_NAME, sizeof( KERNEL_LOGGER_NAME ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user