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

Side by Side Diff: gin/v8_isolate_memory_dump_provider.h

Issue 1266003003: [tracing] Add light dumps in the V8 dump provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@light_dumps
Patch Set: Rebase. Created 5 years, 4 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
« no previous file with comments | « no previous file | gin/v8_isolate_memory_dump_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | gin/v8_isolate_memory_dump_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698