| 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 WebProcessMemoryDump_h | 5 #ifndef WebProcessMemoryDump_h |
| 6 #define WebProcessMemoryDump_h | 6 #define WebProcessMemoryDump_h |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/trace_event/heap_profiler_allocation_context.h" | 10 #include "base/trace_event/heap_profiler_allocation_context.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class SkiaTraceMemoryDumpImpl; | 32 class SkiaTraceMemoryDumpImpl; |
| 33 } // namespace skia | 33 } // namespace skia |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 // Used to specify the type of memory dump the WebProcessMemoryDump should | 37 // Used to specify the type of memory dump the WebProcessMemoryDump should |
| 38 // generate on dump requests. | 38 // generate on dump requests. |
| 39 // TODO(hajimehoshi): Remove this and use base::trace_event:: | 39 // TODO(hajimehoshi): Remove this and use base::trace_event:: |
| 40 // MemoryDumpLevelOfDetail instead. | 40 // MemoryDumpLevelOfDetail instead. |
| 41 enum class WebMemoryDumpLevelOfDetail { | 41 enum class WebMemoryDumpLevelOfDetail { |
| 42 Background, |
| 42 Light, | 43 Light, |
| 43 Detailed | 44 Detailed |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 // A container which holds all the dumps for the various allocators for a given | 47 // A container which holds all the dumps for the various allocators for a given |
| 47 // process. Embedders of WebMemoryDumpProvider are expected to populate a | 48 // process. Embedders of WebMemoryDumpProvider are expected to populate a |
| 48 // WebProcessMemoryDump instance with the stats of their allocators. | 49 // WebProcessMemoryDump instance with the stats of their allocators. |
| 49 class PLATFORM_EXPORT WebProcessMemoryDump final { | 50 class PLATFORM_EXPORT WebProcessMemoryDump final { |
| 50 public: | 51 public: |
| 51 // Creates a standalone WebProcessMemoryDump, which owns the underlying | 52 // Creates a standalone WebProcessMemoryDump, which owns the underlying |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 161 |
| 161 // Stores SkTraceMemoryDump for the current ProcessMemoryDump. | 162 // Stores SkTraceMemoryDump for the current ProcessMemoryDump. |
| 162 std::vector<std::unique_ptr<skia::SkiaTraceMemoryDumpImpl>> sk_trace_dump_list
_; | 163 std::vector<std::unique_ptr<skia::SkiaTraceMemoryDumpImpl>> sk_trace_dump_list
_; |
| 163 | 164 |
| 164 DISALLOW_COPY_AND_ASSIGN(WebProcessMemoryDump); | 165 DISALLOW_COPY_AND_ASSIGN(WebProcessMemoryDump); |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace blink | 168 } // namespace blink |
| 168 | 169 |
| 169 #endif // WebProcessMemoryDump_h | 170 #endif // WebProcessMemoryDump_h |
| OLD | NEW |