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

Side by Side Diff: public/platform/WebMemoryDumpProvider.h

Issue 1111383002: [tracing] Expose memory-infra tracing infrastructure to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrapping at 80 cols Created 5 years, 7 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 | « public/platform/WebMemoryAllocatorDump.h ('k') | public/platform/WebProcessMemoryDump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebMemoryDumpProvider_h
6 #define WebMemoryDumpProvider_h
7
8 #include "WebNonCopyable.h"
9
10 namespace blink {
11
12 class WebProcessMemoryDump;
13
14 // Base interface to be part of the memory tracing infrastructure. Blink classes
15 // can implement this interface and register themselves (see
16 // Platform::registerMemoryDumpProvider()) to dump stats for their allocators.
17 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider {
18 public:
19 // Called by the MemoryDumpManager when generating memory dumps. Embedders
20 // are expected to populate the WebProcessMemoryDump* argument and return
21 // true on success or false if anything went wrong and the dump should be
22 // considered invalid.
23 virtual bool onMemoryDump(WebProcessMemoryDump*) = 0;
24 };
25
26 } // namespace blink
27
28 #endif // WebMemoryDumpProvider_h
OLDNEW
« no previous file with comments | « public/platform/WebMemoryAllocatorDump.h ('k') | public/platform/WebProcessMemoryDump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698