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

Unified Diff: include/v8.h

Issue 1268333004: Introduce object visitor to estimate the size of a native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix compare 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 426246f9d3235efb5e4c6f94d4a7f6cd6e3e99d2..1b65770d35e3fe98bf6f374b3df5b6c46b817ba6 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6662,6 +6662,11 @@ class V8_EXPORT Context {
void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
/**
+ * Estimate the memory in bytes retained by this context.
+ */
+ size_t EstimatedSize();
+
+ /**
* Stack-allocated class which sets the execution context for all
* operations executed within a local scope.
*/
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698