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

Side by Side Diff: Source/devtools/front_end/CanvasProfileView.js

Issue 106353002: Nuke Profiler.setRecordingProfile protocol message (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « Source/devtools/front_end/CPUProfileView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 * @override 759 * @override
760 * @param {!WebInspector.ProfileHeader} profile 760 * @param {!WebInspector.ProfileHeader} profile
761 */ 761 */
762 removeProfile: function(profile) 762 removeProfile: function(profile)
763 { 763 {
764 WebInspector.ProfileType.prototype.removeProfile.call(this, profile); 764 WebInspector.ProfileType.prototype.removeProfile.call(this, profile);
765 if (this._recording && profile === this._lastProfileHeader) 765 if (this._recording && profile === this._lastProfileHeader)
766 this._recording = false; 766 this._recording = false;
767 }, 767 },
768 768
769 setRecordingProfile: function(isProfiling)
770 {
771 this._recording = isProfiling;
772 },
773
774 /** 769 /**
775 * @override 770 * @override
776 * @param {string=} title 771 * @param {string=} title
777 * @return {!WebInspector.ProfileHeader} 772 * @return {!WebInspector.ProfileHeader}
778 */ 773 */
779 createTemporaryProfile: function(title) 774 createTemporaryProfile: function(title)
780 { 775 {
781 title = title || WebInspector.UIString("Capturing\u2026"); 776 title = title || WebInspector.UIString("Capturing\u2026");
782 return new WebInspector.CanvasProfileHeader(this, title); 777 return new WebInspector.CanvasProfileHeader(this, title);
783 }, 778 },
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 }, 1284 },
1290 1285
1291 clearResourceStates: function() 1286 clearResourceStates: function()
1292 { 1287 {
1293 this._currentResourceStates = {}; 1288 this._currentResourceStates = {};
1294 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve nts.CanvasReplayStateChanged); 1289 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve nts.CanvasReplayStateChanged);
1295 }, 1290 },
1296 1291
1297 __proto__: WebInspector.Object.prototype 1292 __proto__: WebInspector.Object.prototype
1298 } 1293 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/CPUProfileView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698