fix no auto dump

This commit is contained in:
tqcq 2024-04-30 17:02:29 +08:00
parent b264e63fa3
commit 76ea4f1eea

View File

@ -169,7 +169,7 @@ CpuProfilerSwitch(int signal_number)
int cur_profile_count = profile_count;
std::thread([interval, cur_profile_count] {
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);
ProfilerStop();
}