Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index fdfb01170bc906ddd7537866f67a78059f93123a..cf88a761aa582ad016bb415a2d0622485d0e5ba8 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -7147,6 +7147,17 @@ class V8_EXPORT Isolate { |
*/ |
void RemoveGCEpilogueCallback(GCCallback callback); |
+ typedef size_t (*GetExternallyAllocatedMemoryInBytesCallback)(); |
+ |
+ /** |
+ * Set the callback that tells V8 how much memory is currently allocated |
+ * externally of the V8 heap. Ideally this memory is somehow connect to V8 |
Michael Lippautz
2017/05/30 12:45:10
connected
Hannes Payer (out of office)
2017/05/30 12:47:08
Done.
|
+ * objects and may get freed-up when the corresponding V8 objects get |
+ * collected by a V8 garbage collection. |
+ */ |
+ void SetGetExternallyAllocatedMemoryInBytesCallback( |
+ GetExternallyAllocatedMemoryInBytesCallback callback); |
+ |
/** |
* Forcefully terminate the current thread of JavaScript execution |
* in the given isolate. |