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

Reduce hw sampling rate.

This commit is contained in:
Bartosz Taudul 2021-05-20 01:48:52 +02:00
parent 24b5e16718
commit faf87809d7
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -739,7 +739,7 @@ static void SetupSampling( int64_t& samplingPeriod )
pe.type = PERF_TYPE_HARDWARE;
pe.size = sizeof( perf_event_attr );
pe.config = PERF_COUNT_HW_CPU_CYCLES;
pe.sample_freq = 500*1000;
pe.sample_freq = 5*1000*1000;
pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID;
pe.disabled = 1;
pe.exclude_kernel = 1;