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 GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | 5 #ifndef GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ |
6 #define GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | 6 #define GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/trace_event/memory_dump_provider.h" | 11 #include "base/trace_event/memory_dump_provider.h" |
11 #include "gin/gin_export.h" | 12 #include "gin/gin_export.h" |
12 | 13 |
13 namespace gin { | 14 namespace gin { |
14 | 15 |
15 class IsolateHolder; | 16 class IsolateHolder; |
16 | 17 |
17 // Memory dump provider for the chrome://tracing infrastructure. It dumps | 18 // Memory dump provider for the chrome://tracing infrastructure. It dumps |
18 // summarized memory stats about the V8 Isolate. | 19 // summarized memory stats about the V8 Isolate. |
19 class V8IsolateMemoryDumpProvider | 20 class V8IsolateMemoryDumpProvider |
(...skipping 13 matching lines...) Expand all Loading... |
33 base::trace_event::ProcessMemoryDump* process_memory_dump); | 34 base::trace_event::ProcessMemoryDump* process_memory_dump); |
34 | 35 |
35 IsolateHolder* isolate_holder_; // Not owned. | 36 IsolateHolder* isolate_holder_; // Not owned. |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); | 38 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); |
38 }; | 39 }; |
39 | 40 |
40 } // namespace gin | 41 } // namespace gin |
41 | 42 |
42 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | 43 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ |
OLD | NEW |