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

Side by Side Diff: gin/v8_isolate_memory_dump_provider.h

Issue 1088683003: Adding v8_isolate_memory_dump_provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nits. Created 5 years, 8 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
OLDNEW
(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 Isolates.
rmcilroy 2015/04/21 21:57:26 nit /s/the V8 Isolates/a V8 isolate/
ssid 2015/04/22 10:41:35 Isn't it like soon we are going to have multiple i
rmcilroy 2015/04/22 15:41:05 No, there is only ever a single isolate per thread
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 DumpInto(base::trace_event::ProcessMemoryDump* pmd) override;
25 const char* GetFriendlyName() const override;
26
27 private:
28 IsolateHolder* isolate_holder_; // Not owned (IsolateHolder owns this).
rmcilroy 2015/04/21 21:57:26 IsolateHolder doesn't own itself. Just drop the "(
ssid 2015/04/22 10:41:35 Done.
29
30 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider);
31 };
32
33 } // namespace gin
34
35 #endif // GIN_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698