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

Side by Side Diff: Source/platform/heap/BlinkGCMemoryDumpProvider.h

Issue 1200833008: Adding freelist statistics to blink gc dump provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@oilpan_n2
Patch Set: Nits. Created 5 years, 6 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 | « no previous file | Source/platform/heap/Heap.h » ('j') | Source/platform/heap/Heap.cpp » ('J')
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 BlinkGCMemoryDumpProvider_h 5 #ifndef BlinkGCMemoryDumpProvider_h
6 #define BlinkGCMemoryDumpProvider_h 6 #define BlinkGCMemoryDumpProvider_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "public/platform/WebMemoryDumpProvider.h" 9 #include "public/platform/WebMemoryDumpProvider.h"
10 #include "wtf/OwnPtr.h" 10 #include "wtf/OwnPtr.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // The returned WebMemoryAllocatorDump is owned by 24 // The returned WebMemoryAllocatorDump is owned by
25 // BlinkGCMemoryDumpProvider, and should not be retained (just used to 25 // BlinkGCMemoryDumpProvider, and should not be retained (just used to
26 // dump in the current call stack). 26 // dump in the current call stack).
27 WebMemoryAllocatorDump* createMemoryAllocatorDumpForCurrentGC(const String& absoluteName); 27 WebMemoryAllocatorDump* createMemoryAllocatorDumpForCurrentGC(const String& absoluteName);
28 28
29 // This must be called before taking a new process-wide GC snapshot, to 29 // This must be called before taking a new process-wide GC snapshot, to
30 // clear the previous dumps. 30 // clear the previous dumps.
31 void clearProcessDumpForCurrentGC(); 31 void clearProcessDumpForCurrentGC();
32 32
33 WebProcessMemoryDump* currentProcessMemoryDump() { return m_currentProcessMe moryDump.get(); }
34
33 private: 35 private:
34 BlinkGCMemoryDumpProvider(); 36 BlinkGCMemoryDumpProvider();
35 37
36 OwnPtr<WebProcessMemoryDump> m_currentProcessMemoryDump; 38 OwnPtr<WebProcessMemoryDump> m_currentProcessMemoryDump;
37 }; 39 };
38 40
39 } // namespace blink 41 } // namespace blink
40 42
41 #endif 43 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/Heap.h » ('j') | Source/platform/heap/Heap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698