1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef GIN_V8_SHARED_MEMORY_DUMP_PROVIDER_H_
6 #define GIN_V8_SHARED_MEMORY_DUMP_PROVIDER_H_
8 #include "base/trace_event/memory_dump_provider.h"
9 #include "gin/gin_export.h"
13 // Memory dump provider for the chrome://tracing infrastructure. It dumps
14 // summarized memory stats about V8 Memory shared between Isolates in the same
16 class GIN_EXPORT V8SharedMemoryDumpProvider
17 : public base::trace_event::MemoryDumpProvider {
19 V8SharedMemoryDumpProvider();
20 V8SharedMemoryDumpProvider(const V8SharedMemoryDumpProvider&) = delete;
21 V8SharedMemoryDumpProvider& operator=(const V8SharedMemoryDumpProvider&) =
24 // MemoryDumpProvider implementation.
26 const base::trace_event::MemoryDumpArgs& args,
27 base::trace_event::ProcessMemoryDump* process_memory_dump) override;
29 static void Register();
34 #endif // GIN_V8_SHARED_MEMORY_DUMP_PROVIDER_H_