mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 15:39:47 +00:00
max sample rate optimization
Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
parent
81e3301718
commit
b41c71fed5
@ -678,8 +678,7 @@ bool SubCommandRecord::SetPerfMaxSampleRate()
|
||||
printf("read %s fail.\n", PERF_EVENT_MAX_SAMPLE_RATE.c_str());
|
||||
return false;
|
||||
}
|
||||
if (maxRate > frequency)
|
||||
{
|
||||
if (maxRate > frequency) {
|
||||
return true;
|
||||
}
|
||||
int newRate = frequency > PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE ? frequency :
|
||||
|
Loading…
Reference in New Issue
Block a user