summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/v8/V8GCController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/v8/V8GCController.cpp')
-rw-r--r--WebCore/bindings/v8/V8GCController.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp
index c27e1d5..36beece 100644
--- a/WebCore/bindings/v8/V8GCController.cpp
+++ b/WebCore/bindings/v8/V8GCController.cpp
@@ -406,6 +406,15 @@ int getMemoryUsageInMB()
#endif
}
+int getActualMemoryUsageInMB()
+{
+#if PLATFORM(CHROMIUM)
+ return ChromiumBridge::actualMemoryUsageMB();
+#else
+ return 0;
+#endif
+}
+
} // anonymous namespace
void V8GCController::gcEpilogue()
@@ -417,7 +426,7 @@ void V8GCController::gcEpilogue()
GCEpilogueVisitor epilogueVisitor;
visitActiveDOMObjectsInCurrentThread(&epilogueVisitor);
- workingSetEstimateMB = getMemoryUsageInMB();
+ workingSetEstimateMB = getActualMemoryUsageInMB();
#ifndef NDEBUG
// Check all survivals are weak.