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

Unified Diff: base/profiler/scoped_profile.cc

Issue 2386123003: Add heap allocator usage to task profiler. (Closed)
Patch Set: Figure out where the @#$%! corruption is coming from. Move heap tracking to TaskStopwatch." Created 4 years, 2 months 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
Index: base/profiler/scoped_profile.cc
diff --git a/base/profiler/scoped_profile.cc b/base/profiler/scoped_profile.cc
index f06a8c6f5dd68fafe34b90627acf8808499c7552..02a2b173c57356636909d5716838030432471c78 100644
--- a/base/profiler/scoped_profile.cc
+++ b/base/profiler/scoped_profile.cc
@@ -10,7 +10,6 @@
namespace tracked_objects {
-
ScopedProfile::ScopedProfile(const Location& location, Mode mode)
: birth_(NULL) {
if (mode == DISABLED)
@@ -28,6 +27,7 @@ ScopedProfile::~ScopedProfile() {
return;
stopwatch_.Stop();
+
ThreadData::TallyRunInAScopedRegionIfTracking(birth_, stopwatch_);
}

Powered by Google App Engine
This is Rietveld 408576698