From d2c90d0d2e326349a5addf7dbafb53bab8d5012f Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:43:35 +0800 Subject: [PATCH] fix RAWLOG --- 3party/gperftools/src/profiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3party/gperftools/src/profiler.cc b/3party/gperftools/src/profiler.cc index 39381e4..21f316e 100644 --- a/3party/gperftools/src/profiler.cc +++ b/3party/gperftools/src/profiler.cc @@ -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();