| 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));
|
| +}
|
|
|