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

Unified Diff: base/profiler/scoped_profile.h

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.h
diff --git a/base/profiler/scoped_profile.h b/base/profiler/scoped_profile.h
index 657150a0f18dce184cd814dfa08eea8af7c439bc..ed86f460b9af2523258f8d3e5f8b1cdc68b88bd1 100644
--- a/base/profiler/scoped_profile.h
+++ b/base/profiler/scoped_profile.h
@@ -13,6 +13,7 @@
// macros listed below.
#include "base/base_export.h"
+#include "base/debug/scoped_thread_heap_usage.h"
#include "base/location.h"
#include "base/macros.h"
#include "base/profiler/tracked_time.h"
@@ -57,6 +58,7 @@ class BASE_EXPORT ScopedProfile {
private:
Births* birth_; // Place in code where tracking started.
TaskStopwatch stopwatch_;
+ base::debug::HeapUsageTracker heap_usage_;
DISALLOW_COPY_AND_ASSIGN(ScopedProfile);
};

Powered by Google App Engine
This is Rietveld 408576698