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

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: rebase 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 /** 578 /**
579 * The TimelineModel being viewed by the timeline 579 * The TimelineModel being viewed by the timeline
580 * @type {TimelineModel} 580 * @type {TimelineModel}
581 */ 581 */
582 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS); 582 cr.defineProperty(Timeline, 'model', cr.PropertyKind.JS);
583 583
584 return { 584 return {
585 Timeline: Timeline 585 Timeline: Timeline
586 }; 586 };
587 }); 587 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/tracing/timeline.css ('k') | chrome/browser/resources/tracing/timeline_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698