Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 5ee0739b9ea113ff4587fb01dc1d63f453e83cff..b8bff262f4289ff6d698ae00dd91c22b96dbeed4 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -436,8 +436,9 @@ void CpuProfiler::StartProcessorIfNotStarted() { |
CpuProfile* CpuProfiler::StopCollectingProfile(const char* title) { |
+ const double actual_sampling_rate = generator_->actual_sampling_rate(); |
StopProcessorIfLastProfile(); |
- CpuProfile* result = profiles_->StopProfiling(title); |
+ CpuProfile* result = profiles_->StopProfiling(title, actual_sampling_rate); |
if (result != NULL) { |
result->Print(); |
} |
@@ -446,8 +447,9 @@ CpuProfile* CpuProfiler::StopCollectingProfile(const char* title) { |
CpuProfile* CpuProfiler::StopCollectingProfile(String* title) { |
+ const double actual_sampling_rate = generator_->actual_sampling_rate(); |
StopProcessorIfLastProfile(); |
- return profiles_->StopProfiling(title); |
+ return profiles_->StopProfiling(title, actual_sampling_rate); |
} |