Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
| 6 #define GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
| 7 | |
| 8 #include "base/trace_event/memory_dump_provider.h" | |
| 9 #include "gin/gin_export.h" | |
| 10 | |
| 11 namespace gin { | |
| 12 | |
| 13 class IsolateHolder; | |
| 14 | |
| 15 // Memory dump provider for the chrome://tracing infrastructure. It dumps | |
| 16 // summarized memory stats about the V8 Isolate. | |
| 17 class V8IsolateMemoryDumpProvider | |
| 18 : public base::trace_event::MemoryDumpProvider { | |
| 19 public: | |
| 20 explicit V8IsolateMemoryDumpProvider(IsolateHolder* isolate_holder); | |
| 21 ~V8IsolateMemoryDumpProvider() override; | |
| 22 | |
| 23 // MemoryDumpProvider implementation. | |
| 24 bool OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override; | |
| 25 | |
| 26 private: | |
| 27 IsolateHolder* isolate_holder_; // Not owned. | |
| 28 | |
| 29 void DumpMemoryStatistics_(base::trace_event::ProcessMemoryDump* pmd); | |
|
Primiano Tucci (use gerrit)
2015/05/07 16:25:43
You don't need the trailing underscore for private
ssid
2015/05/08 08:37:40
Done.
| |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider); | |
| 32 }; | |
| 33 | |
| 34 } // namespace gin | |
| 35 | |
| 36 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_ | |
| OLD | NEW |