| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 * @return {?ProfilerAgent.Profile} | 127 * @return {?ProfilerAgent.Profile} |
| 128 */ | 128 */ |
| 129 function extractProfile(error, profile) | 129 function extractProfile(error, profile) |
| 130 { | 130 { |
| 131 return !error && profile ? profile : null; | 131 return !error && profile ? profile : null; |
| 132 } | 132 } |
| 133 this._isRecording = false; | 133 this._isRecording = false; |
| 134 return this.target().profilerAgent().stop(extractProfile); | 134 return this.target().profilerAgent().stop(extractProfile); |
| 135 }, | 135 }, |
| 136 | 136 |
| 137 /** |
| 138 * @override |
| 139 */ |
| 137 dispose: function() | 140 dispose: function() |
| 138 { | 141 { |
| 139 WebInspector.moduleSetting("highResolutionCpuProfiling").removeChangeLis
tener(this._configureCpuProfilerSamplingInterval, this); | 142 WebInspector.moduleSetting("highResolutionCpuProfiling").removeChangeLis
tener(this._configureCpuProfilerSamplingInterval, this); |
| 140 }, | 143 }, |
| 141 | 144 |
| 142 __proto__: WebInspector.SDKModel.prototype | 145 __proto__: WebInspector.SDKModel.prototype |
| 143 }; | 146 }; |
| OLD | NEW |