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

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: 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
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 can implement this
15 // interface and register themselves (see Platform::registerMemoryDumpProvider() ) to dump the stats
16 // of their allocators.
17 class BLINK_PLATFORM_EXPORT WebMemoryDumpProvider {
18 public:
19 // Called by the memory dump manager when generating memory dumps. Embedders are expected to
haraken 2015/04/30 01:45:49 memory dump manager => MemoryDumpManager
Primiano Tucci (use gerrit) 2015/04/30 09:07:43 Done.
20 // populate the WebProcessMemoryDump* argument and return true on success or false if anything
21 // went wrong and the dump should be considered invalid.
22 virtual bool onMemoryDump(WebProcessMemoryDump*) = 0;
23 };
24
25 } // namespace blink
26
27 #endif // WebMemoryDumpProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698