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

Side by Side Diff: third_party/WebKit/public/platform/WebProcessMemoryDump.h

Issue 1877313003: [tracing] Track number of allocations in heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix indentation. 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebProcessMemoryDump_h 5 #ifndef WebProcessMemoryDump_h
6 #define WebProcessMemoryDump_h 6 #define WebProcessMemoryDump_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "WebMemoryAllocatorDump.h" 9 #include "WebMemoryAllocatorDump.h"
10 #include "WebMemoryDumpProvider.h" 10 #include "WebMemoryDumpProvider.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // by WebProcessMemoryDump and cannot outlive the WebProcessMemoryDump 83 // by WebProcessMemoryDump and cannot outlive the WebProcessMemoryDump
84 // object owning them. |dumpNamePrefix| is prefix appended to each dump 84 // object owning them. |dumpNamePrefix| is prefix appended to each dump
85 // created by the SkTraceMemoryDump implementation, if the dump should be 85 // created by the SkTraceMemoryDump implementation, if the dump should be
86 // placed under different namespace and not "skia". 86 // placed under different namespace and not "skia".
87 virtual SkTraceMemoryDump* createDumpAdapterForSkia(const WebString& dumpNam ePrefix) = 0; 87 virtual SkTraceMemoryDump* createDumpAdapterForSkia(const WebString& dumpNam ePrefix) = 0;
88 88
89 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump( const std::string& name, base::DiscardableMemory*) = 0; 89 virtual blink::WebMemoryAllocatorDump* createDiscardableMemoryAllocatorDump( const std::string& name, base::DiscardableMemory*) = 0;
90 90
91 // Dumps heap memory usage. |allocatorName| is used as an absolute name for 91 // Dumps heap memory usage. |allocatorName| is used as an absolute name for
92 // base::trace_event::ProcessMemoryDump::AddHeapDump. 92 // base::trace_event::ProcessMemoryDump::AddHeapDump.
93 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio nContext, size_t>& bytesByContext, base::trace_event::TraceEventMemoryOverhead&, const char* allocatorName) = 0; 93 virtual void dumpHeapUsage(const base::hash_map<base::trace_event::Allocatio nContext, base::trace_event::AllocationMetrics>& metricsByContext, base::trace_e vent::TraceEventMemoryOverhead&, const char* allocatorName) = 0;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // WebProcessMemoryDump_h 98 #endif // WebProcessMemoryDump_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/web_process_memory_dump_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698