fix no auto dump
All checks were successful
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 2m5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m8s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m23s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m48s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 3m17s
All checks were successful
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 2m5s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m8s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m23s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m28s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m48s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 3m17s
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…
Reference in New Issue
Block a user