fix RAWLOG
Some checks failed
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m25s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 2m30s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m45s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m50s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m50s
Some checks failed
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m25s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 2m30s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m34s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m45s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m50s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m50s
This commit is contained in:
parent
78b7cc8e28
commit
d2c90d0d2e
@ -165,12 +165,12 @@ CpuProfilerSwitch(int signal_number)
|
||||
if (auto_stop_interval != NULL) {
|
||||
long int interval = strtol(auto_stop_interval, NULL, 10);
|
||||
if (interval > 0) {
|
||||
RAW_LOG(INFO, "Auto Stop cpu Profiling After %ss", interval);
|
||||
RAW_LOG(INFO, "Auto Stop cpu Profiling After %s s", interval);
|
||||
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) {
|
||||
RAW_LOG(INFO, "Trigger Auto stop CPU Profiling, duration=%ss", interval);
|
||||
RAW_LOG(INFO, "Trigger Auto stop CPU Profiling, duration=%s s", interval);
|
||||
ProfilerStop();
|
||||
}
|
||||
}).detach();
|
||||
|
Loading…
x
Reference in New Issue
Block a user