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

Unified Diff: Source/bindings/v8/ScriptProfiler.h

Issue 14373016: DevTools: [HeapProfiler] Provide API for heap objects tracking info. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: description was slightly changed Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/v8/ScriptProfiler.cpp » ('j') | Source/bindings/v8/ScriptProfiler.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptProfiler.h
diff --git a/Source/bindings/v8/ScriptProfiler.h b/Source/bindings/v8/ScriptProfiler.h
index b917ac8289f464dfc2d56ee6708d6334fbbd7c7a..4f4bbcf33105bcdc31fdcb2985ed43d29e929195 100644
--- a/Source/bindings/v8/ScriptProfiler.h
+++ b/Source/bindings/v8/ScriptProfiler.h
@@ -61,6 +61,12 @@ public:
virtual bool isCanceled() = 0;
};
+ class OutputStream {
+ public:
+ virtual ~OutputStream() { }
+ virtual void write(const uint32_t* chunk, const int size) = 0;
+ };
+
static void collectGarbage();
static ScriptObject objectByHeapObjectId(unsigned id);
static unsigned getHeapObjectId(const ScriptValue&);
@@ -71,6 +77,9 @@ public:
static PassRefPtr<ScriptProfile> stopForPage(Page*, const String& title);
static PassRefPtr<ScriptProfile> stopForWorkerContext(WorkerContext*, const String& title);
static PassRefPtr<ScriptHeapSnapshot> takeHeapSnapshot(const String& title, HeapSnapshotProgress*);
+ static void startTrackingHeapObjects();
+ static void stopTrackingHeapObjects();
+ static unsigned requestHeapStatsUpdate(OutputStream*);
static void initialize();
static void visitNodeWrappers(WrappedNodeVisitor*);
static void visitExternalStrings(ExternalStringVisitor*);
« no previous file with comments | « no previous file | Source/bindings/v8/ScriptProfiler.cpp » ('j') | Source/bindings/v8/ScriptProfiler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698