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

Side by Side Diff: third_party/WebKit/Source/platform/web_process_memory_dump.h

Issue 2337733002: [tracing] Support BACKGROUND mode in MemoryCache dump provider (Closed)
Patch Set: remove trace_event change. Created 4 years, 3 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 | « third_party/WebKit/Source/platform/SharedBuffer.cpp ('k') | no next file » | no next file with comments »
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 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698