Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: src/profiler/profile-generator.h

Issue 2586923002: [profiler] fix memory leak for code entries for runtime callstats. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/profiler/profile-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/profile-generator.h
diff --git a/src/profiler/profile-generator.h b/src/profiler/profile-generator.h
index 1b3cad6dc3ee7a2aa804103884d369ee769c9143..38a0cf26e4f3eb531db2a943270afa5bfe97ada7 100644
--- a/src/profiler/profile-generator.h
+++ b/src/profiler/profile-generator.h
@@ -369,6 +369,7 @@ class CpuProfilesCollection {
class ProfileGenerator {
public:
ProfileGenerator(Isolate* isolate, CpuProfilesCollection* profiles);
+ ~ProfileGenerator();
void RecordTickSample(const TickSample& sample);
@@ -381,6 +382,7 @@ class ProfileGenerator {
Isolate* isolate_;
CpuProfilesCollection* profiles_;
CodeMap code_map_;
+ std::vector<CodeEntry*> code_entries_;
DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
};
« no previous file with comments | « no previous file | src/profiler/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698