| OLD | NEW |
| 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 Loading... |
| 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 }; |
| OLD | NEW |