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

Side by Side Diff: chrome/browser/resources/task_manager/measure_time.js

Issue 8993007: WebUI TaskManager: Delay scripts loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: marge with master 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
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Utility methods for measuring loading times.
7 *
8 * To be included as a first script in main.html
9 */
10
11 var measureTime = {
12 isEnabled: localStorage.measureTimeEnabled,
13
14 startInterval: function(name) {
15 if (this.isEnabled)
16 console.time(name);
17 },
18
19 recordInterval: function(name) {
20 if (this.isEnabled)
21 console.timeEnd(name);
22 },
23 };
24
25 measureTime.startInterval('Load.Total');
26 measureTime.startInterval('Load.Script');
OLDNEW
« no previous file with comments | « chrome/browser/resources/task_manager/main.js ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698