| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Hacky helpers for debugging... | 6 * Hacky helpers for debugging... |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 function Log(msg) { | 9 function Log(msg) { |
| 10 if (msg) { | 10 if (msg) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 Log("timestamp: " + DumpTimestamp(run.entry.timestamp)); | 69 Log("timestamp: " + DumpTimestamp(run.entry.timestamp)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 function LogObject(obj, opt_name) { | 72 function LogObject(obj, opt_name) { |
| 73 var prefix = ""; | 73 var prefix = ""; |
| 74 if (opt_name) | 74 if (opt_name) |
| 75 prefix = opt_name + "= "; | 75 prefix = opt_name + "= "; |
| 76 Log(prefix + DumpObj(obj)); | 76 Log(prefix + DumpObj(obj)); |
| 77 } | 77 } |
| 78 | 78 |
| OLD | NEW |