mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
max sample rate optimization
Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
parent
29a2f3d80a
commit
81e3301718
@ -754,11 +754,9 @@ void PerfEvents::SetSampleFrequency(unsigned int frequency)
|
||||
printf("read perf_event_max_sample_rate fail.\n");
|
||||
return;
|
||||
}
|
||||
if (sampleFreq_ > maxRate)
|
||||
{
|
||||
if (sampleFreq_ > maxRate) {
|
||||
sampleFreq_ = maxRate;
|
||||
if (!printFlag)
|
||||
{
|
||||
if (!printFlag) {
|
||||
printf("Adjust sampling frequency to maximum allowed frequency %d.\n", maxRate);
|
||||
printFlag = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user