Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 0a83b85f50593cf272273efe163ffe4bf1a9e3e4..0d226cfb3f2b8af1d7bca601717c6e87bd9776eb 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -452,8 +452,9 @@ void CpuProfiler::StartProcessorIfNotStarted() { |
CpuProfile* CpuProfiler::StopProfiling(const char* title) { |
if (!is_profiling_) return NULL; |
+ const double actual_sampling_rate = generator_->actual_sampling_rate(); |
StopProcessorIfLastProfile(title); |
- CpuProfile* result = profiles_->StopProfiling(title); |
+ CpuProfile* result = profiles_->StopProfiling(title, actual_sampling_rate); |
if (result != NULL) { |
result->Print(); |
} |
@@ -463,9 +464,10 @@ CpuProfile* CpuProfiler::StopProfiling(const char* title) { |
CpuProfile* CpuProfiler::StopProfiling(String* title) { |
if (!is_profiling_) return NULL; |
+ const double actual_sampling_rate = generator_->actual_sampling_rate(); |
const char* profile_title = profiles_->GetName(title); |
StopProcessorIfLastProfile(profile_title); |
- return profiles_->StopProfiling(profile_title); |
+ return profiles_->StopProfiling(profile_title, actual_sampling_rate); |
} |