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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineModelImpl.js

Issue 328143003: Timeline: add preview of painted picture for Paint event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * @constructor 6 * @constructor
7 * @extends {WebInspector.TimelineModel} 7 * @extends {WebInspector.TimelineModel}
8 * @param {!WebInspector.TimelineManager} timelineManager 8 * @param {!WebInspector.TimelineManager} timelineManager
9 */ 9 */
10 WebInspector.TimelineModelImpl = function(timelineManager) 10 WebInspector.TimelineModelImpl = function(timelineManager)
(...skipping 18 matching lines...) Expand all
29 * @return {boolean} 29 * @return {boolean}
30 */ 30 */
31 loadedFromFile: function() 31 loadedFromFile: function()
32 { 32 {
33 return this._loadedFromFile; 33 return this._loadedFromFile;
34 }, 34 },
35 35
36 /** 36 /**
37 * @param {boolean} captureStacks 37 * @param {boolean} captureStacks
38 * @param {boolean} captureMemory 38 * @param {boolean} captureMemory
39 * @param {boolean} capturePictures
39 */ 40 */
40 startRecording: function(captureStacks, captureMemory) 41 startRecording: function(captureStacks, captureMemory, capturePictures)
41 { 42 {
43 console.assert(!capturePictures, "Legacy timeline does not support captu ring pictures");
42 this._clientInitiatedRecording = true; 44 this._clientInitiatedRecording = true;
43 this.reset(); 45 this.reset();
44 var maxStackFrames = captureStacks ? 30 : 0; 46 var maxStackFrames = captureStacks ? 30 : 0;
45 var includeGPUEvents = WebInspector.experimentsSettings.gpuTimeline.isEn abled(); 47 var includeGPUEvents = WebInspector.experimentsSettings.gpuTimeline.isEn abled();
46 var liveEvents = [ WebInspector.TimelineModel.RecordType.BeginFrame, 48 var liveEvents = [ WebInspector.TimelineModel.RecordType.BeginFrame,
47 WebInspector.TimelineModel.RecordType.DrawFrame, 49 WebInspector.TimelineModel.RecordType.DrawFrame,
48 WebInspector.TimelineModel.RecordType.RequestMainThre adFrame, 50 WebInspector.TimelineModel.RecordType.RequestMainThre adFrame,
49 WebInspector.TimelineModel.RecordType.ActivateLayerTr ee ]; 51 WebInspector.TimelineModel.RecordType.ActivateLayerTr ee ];
50 this._timelineManager.start(maxStackFrames, WebInspector.experimentsSett ings.timelineNoLiveUpdate.isEnabled(), liveEvents.join(","), captureMemory, incl udeGPUEvents, this._fireRecordingStarted.bind(this)); 52 this._timelineManager.start(maxStackFrames, WebInspector.experimentsSett ings.timelineNoLiveUpdate.isEnabled(), liveEvents.join(","), captureMemory, incl udeGPUEvents, this._fireRecordingStarted.bind(this));
51 }, 53 },
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 break; 771 break;
770 length += itemLength; 772 length += itemLength;
771 data.push(item); 773 data.push(item);
772 ++this._recordIndex; 774 ++this._recordIndex;
773 } 775 }
774 if (this._recordIndex === this._payloads.length) 776 if (this._recordIndex === this._payloads.length)
775 data.push(data.pop() + "]"); 777 data.push(data.pop() + "]");
776 stream.write(data.join(separator), this._writeNextChunk.bind(this)); 778 stream.write(data.join(separator), this._writeNextChunk.bind(this));
777 } 779 }
778 } 780 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698