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

Unified Diff: test/js-perf-test/Inspector/run.js

Issue 2962213002: Make String16 consturctors non-inline to save binary size (150kb) (Closed)
Patch Set: test onliy Created 3 years, 5 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 | « test/js-perf-test/Inspector/debugger.js ('k') | test/js-perf-test/Inspector/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/Inspector/run.js
diff --git a/test/js-perf-test/Inspector/run.js b/test/js-perf-test/Inspector/run.js
index 8636b004713734df94318125542e3ba9e4961152..f41ada31fa8c5d1b7198b34f7c72ba1f5c23e4a9 100644
--- a/test/js-perf-test/Inspector/run.js
+++ b/test/js-perf-test/Inspector/run.js
@@ -5,8 +5,10 @@
load('../base.js');
load('debugger.js');
+load('runtime.js');
-var success = true;
+let success = true;
+let lastId = 0;
function PrintResult(name, result) {
print(name + '-Inspector(Score): ' + result);
@@ -26,3 +28,11 @@ BenchmarkSuite.config.doDeterministic = undefined;
BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
NotifyError: PrintError,
NotifyStep: PrintStep });
+
+function SendMessage(method, params) {
+ let obj = {id: ++lastId, method: method};
+ if (params) {
+ obj.params = params;
+ }
+ send(JSON.stringify(obj));
+}
« no previous file with comments | « test/js-perf-test/Inspector/debugger.js ('k') | test/js-perf-test/Inspector/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698