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

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

Issue 2590483002: Revert of [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 | « src/profiler/profile-generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/profile-generator.cc
diff --git a/src/profiler/profile-generator.cc b/src/profiler/profile-generator.cc
index 446bbffc34fc4e566834c0bd2a4c82c7c49d79aa..b3af769f4b10cc5a59ff9044300e54943bf961d9 100644
--- a/src/profiler/profile-generator.cc
+++ b/src/profiler/profile-generator.cc
@@ -649,13 +649,8 @@
DCHECK(counter->name());
auto entry = new CodeEntry(CodeEventListener::FUNCTION_TAG, counter->name(),
CodeEntry::kEmptyNamePrefix, "native V8Runtime");
- code_entries_.push_back(entry);
code_map_.AddCode(reinterpret_cast<Address>(counter), entry, 1);
}
-}
-
-ProfileGenerator::~ProfileGenerator() {
- for (auto code_entry : code_entries_) delete code_entry;
}
void ProfileGenerator::RecordTickSample(const TickSample& sample) {
« no previous file with comments | « src/profiler/profile-generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698