| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |