| Index: src/profiler/profile-generator.h
|
| diff --git a/src/profiler/profile-generator.h b/src/profiler/profile-generator.h
|
| index 47a73f191a13ce8db0142c26bf9305f50e7b2c1b..3c976d62924b3a27f032f92439c75b027aff2e3a 100644
|
| --- a/src/profiler/profile-generator.h
|
| +++ b/src/profiler/profile-generator.h
|
| @@ -192,7 +192,8 @@ class ProfileTree {
|
|
|
| ProfileNode* AddPathFromEnd(
|
| const Vector<CodeEntry*>& path,
|
| - int src_line = v8::CpuProfileNode::kNoLineNumberInfo);
|
| + int src_line = v8::CpuProfileNode::kNoLineNumberInfo,
|
| + bool update_stats = true);
|
| ProfileNode* root() const { return root_; }
|
| unsigned next_node_id() { return next_node_id_++; }
|
| unsigned GetFunctionId(const ProfileNode* node);
|
| @@ -225,7 +226,7 @@ class CpuProfile {
|
|
|
| // Add pc -> ... -> main() call path to the profile.
|
| void AddPath(base::TimeTicks timestamp, const Vector<CodeEntry*>& path,
|
| - int src_line);
|
| + int src_line, bool update_stats);
|
| void CalculateTotalTicksAndSamplingRate();
|
|
|
| const char* title() const { return title_; }
|
| @@ -333,7 +334,8 @@ class CpuProfilesCollection {
|
|
|
| // Called from profile generator thread.
|
| void AddPathToCurrentProfiles(base::TimeTicks timestamp,
|
| - const Vector<CodeEntry*>& path, int src_line);
|
| + const Vector<CodeEntry*>& path, int src_line,
|
| + bool update_stats);
|
|
|
| // Limits the number of profiles that can be simultaneously collected.
|
| static const int kMaxSimultaneousProfiles = 100;
|
|
|