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

Unified Diff: tools/perf/perf_tools/blink_perf.js

Issue 17472007: [Telemetry] Expose v8's window.gc() method to the PerfTestRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/perf_tools/blink_perf.js
diff --git a/tools/perf/perf_tools/blink_perf.js b/tools/perf/perf_tools/blink_perf.js
index 439607bf19efaabc17b229354b002a6d959ca55f..155f22fce7b5c305f606e3839b64b4fe076bdba2 100644
--- a/tools/perf/perf_tools/blink_perf.js
+++ b/tools/perf/perf_tools/blink_perf.js
@@ -11,4 +11,10 @@ testRunner.dumpAsText = function() {};
testRunner.notifyDone = function() {
this.isDone = true;
};
+
+window.GCController = {};
+
+GCController.collect = function() {
+ gc();
+};
})();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698