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/trace_event/memory_dump_provider.h" | 10 #include "base/trace_event/memory_dump_provider.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 explicit V8IsolateMemoryDumpProvider(IsolateHolder* isolate_holder); | 22 explicit V8IsolateMemoryDumpProvider(IsolateHolder* isolate_holder); |
23 ~V8IsolateMemoryDumpProvider() override; | 23 ~V8IsolateMemoryDumpProvider() override; |
24 | 24 |
25 // MemoryDumpProvider implementation. | 25 // MemoryDumpProvider implementation. |
26 bool OnMemoryDump( | 26 bool OnMemoryDump( |
27 const base::trace_event::MemoryDumpArgs& args, | 27 const base::trace_event::MemoryDumpArgs& args, |
28 base::trace_event::ProcessMemoryDump* process_memory_dump) override; | 28 base::trace_event::ProcessMemoryDump* process_memory_dump) override; |
29 | 29 |
30 private: | 30 private: |
31 void DumpHeapStatistics( | 31 void DumpHeapStatistics( |
| 32 const base::trace_event::MemoryDumpArgs& args, |
32 base::trace_event::ProcessMemoryDump* process_memory_dump); | 33 base::trace_event::ProcessMemoryDump* process_memory_dump); |
33 | 34 |
34 IsolateHolder* isolate_holder_; // Not owned. | 35 IsolateHolder* isolate_holder_; // Not owned. |
35 | 36 |
36 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); | 37 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); |
37 }; | 38 }; |
38 | 39 |
39 } // namespace gin | 40 } // namespace gin |
40 | 41 |
41 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | 42 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ |
OLD | NEW |