diff options
Diffstat (limited to 'chrome/common/profiling.cc')
-rw-r--r-- | chrome/common/profiling.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/profiling.cc b/chrome/common/profiling.cc index 24914d5..b15cc96 100644 --- a/chrome/common/profiling.cc +++ b/chrome/common/profiling.cc @@ -41,7 +41,7 @@ void FlushProfilingData(base::Thread* thread) { return; base::debug::FlushProfiling(); - static int flush_seconds = 0; + static int flush_seconds; if (!flush_seconds) { const CommandLine& command_line = *CommandLine::ForCurrentProcess(); std::string profiling_flush = @@ -54,7 +54,9 @@ void FlushProfilingData(base::Thread* thread) { } } thread->message_loop()->PostDelayedTask( - FROM_HERE, base::Bind(&FlushProfilingData, thread), flush_seconds * 1000); + FROM_HERE, + base::Bind(&FlushProfilingData, thread), + base::TimeDelta::FromSeconds(flush_seconds)); } class ProfilingThreadControl { |