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.
6 * @fileoverview Utility methods for measuring loading times.
8 * To be included as a first script in main.html
16 isEnabled: localStorage.measureTimeEnabled,
18 startInterval: function(name) {
23 recordInterval: function(name) {
25 console.timeEnd(name);
29 measureTime.startInterval('Load.Total');
30 measureTime.startInterval('Load.Script');