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

Side by Side Diff: chrome/browser/resources/tracing/timeline.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove tabs Created 9 years, 4 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 (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 * @fileoverview Interactive visualizaiton of TimelineModel objects 6 * @fileoverview Interactive visualizaiton of TimelineModel objects
7 * based loosely on gantt charts. Each thread in the TimelineModel is given a 7 * based loosely on gantt charts. Each thread in the TimelineModel is given a
8 * set of TimelineTracks, one per subrow in the thread. The Timeline class 8 * set of TimelineTracks, one per subrow in the thread. The Timeline class
9 * acts as a controller, creating the individual tracks, while TimelineTracks 9 * acts as a controller, creating the individual tracks, while TimelineTracks
10 * do actual drawing. 10 * do actual drawing.
11 * 11 *
12 * Visually, the Timeline produces (prettier) visualizations like the following: 12 * Visually, the Timeline produces (prettier) visualizations like the following:
13 * Thread1: AAAAAAAAAA AAAAA 13 * Thread1: AAAAAAAAAA AAAAA
14 * BBBB BB 14 * BBBB BB
15 * Thread2: CCCCCC CCCCC 15 * Thread2: CCCCCC CCCCC
16 * 16 *
17 */ 17 */
18 cr.define('gpu', function() { 18 cr.define('tracing', function() {
19 19
20 /** 20 /**
21 * The TimelineViewport manages the transform used for navigating 21 * The TimelineViewport manages the transform used for navigating
22 * within the timeline. It is a simple transform: 22 * within the timeline. It is a simple transform:
23 * x' = (x+pan) * scale 23 * x' = (x+pan) * scale
24 * 24 *
25 * The timeline code tries to avoid directly accessing this transform, 25 * The timeline code tries to avoid directly accessing this transform,
26 * instead using this class to do conversion between world and view space, 26 * instead using this class to do conversion between world and view space,
27 * as well as the math for centering the viewport in various interesting 27 * as well as the math for centering the viewport in various interesting
28 * ways. 28 * ways.
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 /** 577 /**
578 * The TimelineModel being viewed by the timeline 578 * The TimelineModel being viewed by the timeline
579 * @type {TimelineModel} 579 * @type {TimelineModel}
580 */ 580 */
581 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS); 581 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS);
582 582
583 return { 583 return {
584 Timeline: Timeline 584 Timeline: Timeline
585 }; 585 };
586 }); 586 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698