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

Side by Side Diff: content/renderer/memory_benchmarking_extension.h

Issue 1245233004: Add chrome.memoryBenchmarking.requestMemoryDump() API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 5 #ifndef CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
6 #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 6 #define CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "gin/wrappable.h" 9 #include "gin/wrappable.h"
10 10
(...skipping 19 matching lines...) Expand all
30 ~MemoryBenchmarkingExtension() override; 30 ~MemoryBenchmarkingExtension() override;
31 31
32 // gin::Wrappable. 32 // gin::Wrappable.
33 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 33 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
34 v8::Isolate* isolate) override; 34 v8::Isolate* isolate) override;
35 35
36 bool IsHeapProfilerRunning(); 36 bool IsHeapProfilerRunning();
37 37
38 void HeapProfilerDump(gin::Arguments* args); 38 void HeapProfilerDump(gin::Arguments* args);
39 39
40 void RequestMemoryDump(gin::Arguments* args);
41
40 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkingExtension); 42 DISALLOW_COPY_AND_ASSIGN(MemoryBenchmarkingExtension);
41 }; 43 };
42 44
43 } // namespace content 45 } // namespace content
44 46
45 #endif // CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_ 47 #endif // CONTENT_RENDERER_MEMORY_BENCHMARKING_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698