Commit b264e63f authored by tqcq's avatar tqcq
Browse files

fix RAWLOG

parent d2c90d0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 %s s", interval);
                RAW_LOG(INFO, "Auto Stop cpu Profiling After %ds", 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=%s s", interval);
                        RAW_LOG(INFO, "Trigger Auto stop CPU Profiling, duration=%ds", interval);
                        ProfilerStop();
                    }
                }).detach();