mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-23 07:29:42 +00:00
告警清理
Signed-off-by:wenlong12 <wenlong12@huawei.com> Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
parent
7351c54e2f
commit
f503c38e9d
@ -339,7 +339,7 @@ bool IsSupportNonDebuggableApp();
|
||||
const std::string GetUserType();
|
||||
std::string GetProcessName(int pid);
|
||||
bool NeedAdaptSandboxPath(char *filename, int pid, u16 &headerSize);
|
||||
bool NeedAdaptHMBundlePath(std::string& filename, std::string threadname);
|
||||
bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname);
|
||||
|
||||
template <typename Func>
|
||||
class ScopeGuard {
|
||||
|
@ -754,7 +754,7 @@ void PerfEvents::SetSampleFrequency(unsigned int frequency)
|
||||
printf("read perf_event_max_sample_rate fail.\n");
|
||||
return;
|
||||
}
|
||||
if (sampleFreq_ > maxRate) {
|
||||
if (sampleFreq_ > static_cast<unsigned int>(maxRate)) {
|
||||
sampleFreq_ = maxRate;
|
||||
if (!printFlag) {
|
||||
printf("Adjust sampling frequency to maximum allowed frequency %d.\n", maxRate);
|
||||
|
@ -682,7 +682,7 @@ bool SubCommandRecord::SetPerfMaxSampleRate()
|
||||
return true;
|
||||
}
|
||||
int newRate = frequency > PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE ? frequency :
|
||||
PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE;
|
||||
static_cast<int>(PerfEvents::DEFAULT_EVENT_MAX_SAMPLE_RATE);
|
||||
return SetPerfLimit(PERF_EVENT_MAX_SAMPLE_RATE, newRate, cmp,
|
||||
"hiviewdfx.hiperf.perf_event_max_sample_rate");
|
||||
}
|
||||
|
@ -756,7 +756,7 @@ bool NeedAdaptSandboxPath(char *filename, int pid, u16 &headerSize)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NeedAdaptHMBundlePath(std::string& filename, std::string threadname)
|
||||
bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname)
|
||||
{
|
||||
std::string path = "/data/storage/el1/bundle";
|
||||
std::string newpath = "/data/app/el1/bundle/public/";
|
||||
|
Loading…
Reference in New Issue
Block a user