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

Side by Side Diff: Source/devtools/front_end/CPUProfileView.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 ProfilerAgent.start(); 712 ProfilerAgent.start();
713 }, 713 },
714 714
715 stopRecordingProfile: function() 715 stopRecordingProfile: function()
716 { 716 {
717 this._recording = false; 717 this._recording = false;
718 ProfilerAgent.stop(); 718 ProfilerAgent.stop();
719 }, 719 },
720 720
721 /** 721 /**
722 * @param {boolean} isProfiling
723 */
724 setRecordingProfile: function(isProfiling)
725 {
726 this._recording = isProfiling;
727 },
728
729 /**
730 * @override 722 * @override
731 * @param {string=} title 723 * @param {string=} title
732 * @return {!WebInspector.ProfileHeader} 724 * @return {!WebInspector.ProfileHeader}
733 */ 725 */
734 createTemporaryProfile: function(title) 726 createTemporaryProfile: function(title)
735 { 727 {
736 title = title || WebInspector.UIString("Recording\u2026"); 728 title = title || WebInspector.UIString("Recording\u2026");
737 return new WebInspector.CPUProfileHeader(this, title); 729 return new WebInspector.CPUProfileHeader(this, title);
738 }, 730 },
739 731
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 * @return {Object} 1139 * @return {Object}
1148 */ 1140 */
1149 entryData: function(entryIndex) 1141 entryData: function(entryIndex)
1150 { 1142 {
1151 return this._timelineData.entryNodes[entryIndex]; 1143 return this._timelineData.entryNodes[entryIndex];
1152 }, 1144 },
1153 1145
1154 __proto__: WebInspector.FlameChartDataProvider 1146 __proto__: WebInspector.FlameChartDataProvider
1155 } 1147 }
1156 1148
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorProfilerAgent.cpp ('k') | Source/devtools/front_end/CanvasProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698