OLD | NEW |
---|---|
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 callback(error); | 148 callback(error); |
149 }, | 149 }, |
150 | 150 |
151 _configureCpuProfilerSamplingInterval: function() | 151 _configureCpuProfilerSamplingInterval: function() |
152 { | 152 { |
153 var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000; | 153 var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000; |
154 ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval); | 154 ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval); |
155 function didChangeInterval(error) | 155 function didChangeInterval(error) |
156 { | 156 { |
157 if (error) | 157 if (error) |
158 WebInspector.console.showErrorMessage(error); | 158 WebInspector.messageSink.addErrorMessage(error, true); |
sergeyv
2014/05/29 12:44:06
ditto
apavlov
2014/05/29 13:47:46
Done.
| |
159 } | 159 } |
160 }, | 160 }, |
161 | 161 |
162 __proto__: WebInspector.TargetAwareObject.prototype | 162 __proto__: WebInspector.TargetAwareObject.prototype |
163 } | 163 } |
164 | 164 |
165 /** | 165 /** |
166 * @constructor | 166 * @constructor |
167 * @implements {TimelineAgent.Dispatcher} | 167 * @implements {TimelineAgent.Dispatcher} |
168 */ | 168 */ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 progress: function(count) | 217 progress: function(count) |
218 { | 218 { |
219 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineProgress, count); | 219 this._manager.dispatchEventToListeners(WebInspector.TimelineManager.Even tTypes.TimelineProgress, count); |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 /** | 223 /** |
224 * @type {!WebInspector.TimelineManager} | 224 * @type {!WebInspector.TimelineManager} |
225 */ | 225 */ |
226 WebInspector.timelineManager; | 226 WebInspector.timelineManager; |
OLD | NEW |