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

Unified Diff: base/trace_event/heap_profiler_allocation_context.h

Issue 1877313003: [tracing] Track number of allocations in heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 4 years, 8 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/trace_event/heap_profiler_allocation_context.h
diff --git a/base/trace_event/heap_profiler_allocation_context.h b/base/trace_event/heap_profiler_allocation_context.h
index 8544c78eb2cd34c3f7693fa4063ccdcf85f837a1..1b87d8547a2198fa4b687c9f77fcfd2d9df083f2 100644
--- a/base/trace_event/heap_profiler_allocation_context.h
+++ b/base/trace_event/heap_profiler_allocation_context.h
@@ -45,6 +45,12 @@ struct BASE_EXPORT Backtrace {
StackFrame frames[12];
};
+// Struct to store the size and count of the allocations.
+struct AllocationsSizeAndCount {
Dmitry Skiba 2016/04/14 19:07:30 You call this 'metrics' everywhere else (metrics_b
Primiano Tucci (use gerrit) 2016/04/14 19:37:21 +1
ssid 2016/04/14 20:17:10 Done.
+ size_t size;
+ size_t count;
+};
+
bool BASE_EXPORT operator==(const Backtrace& lhs, const Backtrace& rhs);
// The |AllocationContext| is context metadata that is kept for every allocation

Powered by Google App Engine
This is Rietveld 408576698