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

Reduce hw sample period.

This commit is contained in:
Bartosz Taudul 2021-05-22 02:27:34 +02:00
parent 089eda0be9
commit c7026cbc1f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

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