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

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: 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_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 Fix this (remove PUBLIC)
6 #define GIN_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_
7
8 #include <istream>
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 I don't think you need this
9
10 #include "base/memory/scoped_ptr.h"
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 don't need this either
11 #include "base/trace_event/memory_dump_manager.h"
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 Neither this.
12 #include "base/trace_event/memory_dump_provider.h"
13 #include "gin/gin_export.h"
14
15 namespace gin {
16
17 class IsolateHolder;
18
19 // Dump provider which collects process-wide memory stats.
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 I'd probably word this as: // Memory dump provider
20 class V8IsolateMemoryDumpProvider
21 : public base::trace_event::MemoryDumpProvider {
22 public:
23 V8IsolateMemoryDumpProvider(IsolateHolder* isolate_holder);
24 ~V8IsolateMemoryDumpProvider() override;
25
26 // MemoryDumpProvider implementation.
27 bool DumpInto(base::trace_event::ProcessMemoryDump* pmd) override;
28 const char* GetFriendlyName() const override;
29
30 private:
31 // This object is not owned by the IsolateHolder whose reference
32 // is stored in this member.
33 IsolateHolder* isolate_holder_;
Primiano Tucci (use gerrit) 2015/04/17 19:10:31 It is sufficient to say: IsolateHolder* isolate_ho
34
35 DISALLOW_COPY_AND_ASSIGN(V8IsolateMemoryDumpProvider);
36 };
37
38 } // namespace gin
39
40 #endif // GIN_PUBLIC_V8_ISOLATE_MEMORY_DUMP_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698