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

Unified Diff: src/api.cc

Issue 29053002: Provide a mechanism for the embedder to set a TotalPhysicalMemory callback function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 | « include/v8.h ('k') | src/defaults.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 469c7a1814df85e35e1e409684be5c22efa3437c..eb794281978ef7c4596829c323ce5e717539c86a 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6436,6 +6436,12 @@ void V8::RemoveGCEpilogueCallback(GCEpilogueCallback callback) {
}
+void V8::SetTotalPhysicalMemoryFunction(TotalPhysicalMemoryCallback callback) {
+ i::Isolate* isolate = i::Isolate::Current();
Sven Panne 2013/10/21 07:11:04 o_O This is fundamentally wrong, and I can't see h
+ isolate->SetTotalPhysicalMemoryCallback(callback);
+}
+
+
void V8::AddMemoryAllocationCallback(MemoryAllocationCallback callback,
ObjectSpace space,
AllocationAction action) {
« no previous file with comments | « include/v8.h ('k') | src/defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698