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

Unified Diff: test/js-perf-test/Inspector/debugger.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 | « no previous file | test/js-perf-test/Inspector/run.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/Inspector/debugger.js
diff --git a/test/js-perf-test/Inspector/debugger.js b/test/js-perf-test/Inspector/debugger.js
index f4056bf57bc2555afaeced52078e87c42c659304..ca50bb70d85e1ce3a88b369811116c82494aeeba 100644
--- a/test/js-perf-test/Inspector/debugger.js
+++ b/test/js-perf-test/Inspector/debugger.js
@@ -2,23 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-new BenchmarkSuite('Debugger.paused', [10000], [
- new Benchmark('Debugger.paused', false, false, 0, DebuggerPaused, DebuggerEnable, DebuggerDisable),
-]);
+(function() {
+ new BenchmarkSuite('Debugger.paused', [10000], [
+ new Benchmark('Debugger.paused', false, false, 0, DebuggerPaused, Setup, TearDown),
+ ]);
-let lastId = 0;
-function DebuggerEnable() {
- send(JSON.stringify({id: ++lastId, method: 'Debugger.enable'}));
- // force lazy compilation of inspector related scrtips
- send(JSON.stringify({id: ++lastId, method: 'Runtime.evaluate', params: {expression: ''}}));
-}
+ function Setup() {
+ SendMessage('Debugger.enable');
+ // Force lazy compilation of inspector related scripts.
+ SendMessage('Runtime.evaluate', {expression: ''});
+ }
-function DebuggerDisable() {
- send(JSON.stringify({id: ++lastId, method: 'Debugger.disable'}));
-}
+ function TearDown() {
+ SendMessage('Debugger.disable');
+ }
-function DebuggerPaused() {
- for (var i = 0; i < 10; ++i) {
- debugger;
+ function DebuggerPaused() {
+ for (var i = 0; i < 10; ++i) {
+ debugger;
+ }
}
-}
+})();
« no previous file with comments | « no previous file | test/js-perf-test/Inspector/run.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698