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

Side by Side Diff: Source/devtools/front_end/sdk/TimelineManager.js

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed a stray call to TracingAgent.enable() Created 6 years, 8 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.TargetAwareObject} 33 * @extends {WebInspector.TargetAwareObject}
34 * @param {!WebInspector.Target} target 34 * @param {!WebInspector.Target} target
35 */ 35 */
36 WebInspector.TimelineManager = function(target) 36 WebInspector.TimelineManager = function(target)
37 { 37 {
38 WebInspector.TargetAwareObject.call(this, target); 38 WebInspector.TargetAwareObject.call(this, target);
39 this._dispatcher = new WebInspector.TimelineDispatcher(this); 39 this._dispatcher = new WebInspector.TimelineDispatcher(this);
40 this._enablementCount = 0; 40 this._enablementCount = 0;
41 this._jsProfilerStarted = false; 41 this._jsProfilerStarted = false;
42 TimelineAgent.enable(WebInspector.experimentsSettings.timelineTracingMode.is Enabled() ? WebInspector.TimelineManager.defaultTracingCategories : ""); 42 TimelineAgent.enable();
43 } 43 }
44 44
45 WebInspector.TimelineManager.EventTypes = { 45 WebInspector.TimelineManager.EventTypes = {
46 TimelineStarted: "TimelineStarted", 46 TimelineStarted: "TimelineStarted",
47 TimelineStopped: "TimelineStopped", 47 TimelineStopped: "TimelineStopped",
48 TimelineEventRecorded: "TimelineEventRecorded", 48 TimelineEventRecorded: "TimelineEventRecorded",
49 TimelineProgress: "TimelineProgress" 49 TimelineProgress: "TimelineProgress"
50 } 50 }
51 51
52 WebInspector.TimelineManager.defaultTracingCategories = "*,disabled-by-default-c c.debug,disabled-by-default-devtools.timeline";
53
54 WebInspector.TimelineManager.prototype = { 52 WebInspector.TimelineManager.prototype = {
55 /** 53 /**
56 * @return {boolean} 54 * @return {boolean}
57 */ 55 */
58 isStarted: function() 56 isStarted: function()
59 { 57 {
60 return this._dispatcher.isStarted(); 58 return this._dispatcher.isStarted();
61 }, 59 },
62 60
63 /** 61 /**
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 progress: function(count) 212 progress: function(count)
215 { 213 {
216 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineProgress, count); 214 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineProgress, count);
217 } 215 }
218 } 216 }
219 217
220 /** 218 /**
221 * @type {!WebInspector.TimelineManager} 219 * @type {!WebInspector.TimelineManager}
222 */ 220 */
223 WebInspector.timelineManager; 221 WebInspector.timelineManager;
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTracingAgent.cpp ('k') | Source/devtools/front_end/sdk/TracingModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698