fix no auto dump
This commit is contained in:
parent
b264e63fa3
commit
76ea4f1eea
@ -169,7 +169,7 @@ CpuProfilerSwitch(int signal_number)
|
|||||||
int cur_profile_count = profile_count;
|
int cur_profile_count = profile_count;
|
||||||
std::thread([interval, cur_profile_count] {
|
std::thread([interval, cur_profile_count] {
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(interval));
|
std::this_thread::sleep_for(std::chrono::seconds(interval));
|
||||||
if (profile_count == cur_profile_count) {
|
if (profile_count == cur_profile_count + 1) {
|
||||||
RAW_LOG(INFO, "Trigger Auto stop CPU Profiling, duration=%ds", interval);
|
RAW_LOG(INFO, "Trigger Auto stop CPU Profiling, duration=%ds", interval);
|
||||||
ProfilerStop();
|
ProfilerStop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user