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

Side by Side Diff: tools/playback_benchmark/common.js

Issue 9187051: Fix some license headers in tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 Google Inc. All Rights Reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
2 4
3 /** 5 /**
4 * @fileoverview Classes and functions used during recording and playback. 6 * @fileoverview Classes and functions used during recording and playback.
5 */ 7 */
6 8
7 var Benchmark = Benchmark || {}; 9 var Benchmark = Benchmark || {};
8 10
9 Benchmark.functionList = [ 11 Benchmark.functionList = [
10 ['setTimeout', 'setTimeout'], 12 ['setTimeout', 'setTimeout'],
11 ['clearTimeout', 'clearTimeout'], 13 ['clearTimeout', 'clearTimeout'],
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 Benchmark.die = function(message) { 310 Benchmark.die = function(message) {
309 // Debugging stuff. 311 // Debugging stuff.
310 var position = top.Benchmark.playback ? top.Benchmark.agent.timelinePosition : 312 var position = top.Benchmark.playback ? top.Benchmark.agent.timelinePosition :
311 top.Benchmark.agent.timeline.length; 313 top.Benchmark.agent.timeline.length;
312 message = message + ' at position ' + position; 314 message = message + ' at position ' + position;
313 console.error(message); 315 console.error(message);
314 Benchmark.post({error: message}); 316 Benchmark.post({error: message});
315 console.log(Benchmark.originals.setTimeout.call(window, function() {}, 9999)); 317 console.log(Benchmark.originals.setTimeout.call(window, function() {}, 9999));
316 try { (0)() } catch(ex) { console.error(ex.stack); } 318 try { (0)() } catch(ex) { console.error(ex.stack); }
317 throw message; 319 throw message;
318 }; 320 };
OLDNEW
« no previous file with comments | « tools/memory_watcher/preamble_patcher_with_stub.cc ('k') | tools/playback_benchmark/playback.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698