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

Unified Diff: include/v8-profiler.h

Issue 93843004: Add methods for finding object by its snapshot id and id for an object (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: One more time Created 7 years 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 | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-profiler.h
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index 0ed6c5d216b3f8708bea6ae794937b18f844591f..db3c0b7928faafa918cc88c76877c0f53f8ae538 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -393,6 +393,19 @@ class V8_EXPORT HeapProfiler {
SnapshotObjectId GetObjectId(Handle<Value> value);
/**
+ * Returns heap object with given SnapshotObjectId if the object is alive,
+ * otherwise empty handle is returned.
+ */
+ Handle<Value> FindObjectById(SnapshotObjectId id);
+
+ /**
+ * Clears internal map from SnapshotObjectId to heap object. The new objects
+ * will not be added into it unless a heap snapshot is taken or heap object
+ * tracking is kicked off.
+ */
+ void ClearObjectIds();
+
+ /**
* A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return
* it in case heap profiler cannot find id for the object passed as
* parameter. HeapSnapshot::GetNodeById will always return NULL for such id.
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698