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 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 __proto__: WebInspector.ProfileType.prototype | 1170 __proto__: WebInspector.ProfileType.prototype |
1171 } | 1171 } |
1172 | 1172 |
1173 | 1173 |
1174 /** | 1174 /** |
1175 * @constructor | 1175 * @constructor |
1176 * @extends {WebInspector.HeapSnapshotProfileType} | 1176 * @extends {WebInspector.HeapSnapshotProfileType} |
1177 */ | 1177 */ |
1178 WebInspector.TrackingHeapSnapshotProfileType = function() | 1178 WebInspector.TrackingHeapSnapshotProfileType = function() |
1179 { | 1179 { |
1180 WebInspector.HeapSnapshotProfileType.call(this, WebInspector.TrackingHeapSna
pshotProfileType.TypeId, WebInspector.UIString("Record Heap Allocations")); | 1180 WebInspector.HeapSnapshotProfileType.call(this, WebInspector.TrackingHeapSna
pshotProfileType.TypeId, WebInspector.UIString("Record Allocation Timeline")); |
1181 } | 1181 } |
1182 | 1182 |
1183 WebInspector.TrackingHeapSnapshotProfileType.TypeId = "HEAP-RECORD"; | 1183 WebInspector.TrackingHeapSnapshotProfileType.TypeId = "HEAP-RECORD"; |
1184 | 1184 |
1185 WebInspector.TrackingHeapSnapshotProfileType.HeapStatsUpdate = "HeapStatsUpdate"
; | 1185 WebInspector.TrackingHeapSnapshotProfileType.HeapStatsUpdate = "HeapStatsUpdate"
; |
1186 WebInspector.TrackingHeapSnapshotProfileType.TrackingStarted = "TrackingStarted"
; | 1186 WebInspector.TrackingHeapSnapshotProfileType.TrackingStarted = "TrackingStarted"
; |
1187 WebInspector.TrackingHeapSnapshotProfileType.TrackingStopped = "TrackingStopped"
; | 1187 WebInspector.TrackingHeapSnapshotProfileType.TrackingStopped = "TrackingStopped"
; |
1188 | 1188 |
1189 | 1189 |
1190 /** | 1190 /** |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 * @override | 1357 * @override |
1358 * @return {string} | 1358 * @return {string} |
1359 */ | 1359 */ |
1360 fileExtension: function() | 1360 fileExtension: function() |
1361 { | 1361 { |
1362 return ".heaptimeline"; | 1362 return ".heaptimeline"; |
1363 }, | 1363 }, |
1364 | 1364 |
1365 get treeItemTitle() | 1365 get treeItemTitle() |
1366 { | 1366 { |
1367 return WebInspector.UIString("HEAP TIMELINES"); | 1367 return WebInspector.UIString("ALLOCATION TIMELINES"); |
1368 }, | 1368 }, |
1369 | 1369 |
1370 get description() | 1370 get description() |
1371 { | 1371 { |
1372 return WebInspector.UIString("Record JavaScript object allocations over
time. Use this profile type to isolate memory leaks."); | 1372 return WebInspector.UIString("Allocation timelines show memory allocatio
ns from your heap over time. Use this profile type to isolate memory leaks."); |
1373 }, | 1373 }, |
1374 | 1374 |
1375 /** | 1375 /** |
1376 * @override | 1376 * @override |
1377 */ | 1377 */ |
1378 _resetProfiles: function() | 1378 _resetProfiles: function() |
1379 { | 1379 { |
1380 var wasRecording = this._recording; | 1380 var wasRecording = this._recording; |
1381 // Clear current profile to avoid stopping backend. | 1381 // Clear current profile to avoid stopping backend. |
1382 this.setProfileBeingRecorded(null); | 1382 this.setProfileBeingRecorded(null); |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 name.textContent = WebInspector.beautifyFunctionName(frame.functionN
ame); | 2249 name.textContent = WebInspector.beautifyFunctionName(frame.functionN
ame); |
2250 if (frame.scriptId) { | 2250 if (frame.scriptId) { |
2251 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; | 2251 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; |
2252 frameDiv.appendChild(urlElement); | 2252 frameDiv.appendChild(urlElement); |
2253 } | 2253 } |
2254 } | 2254 } |
2255 }, | 2255 }, |
2256 | 2256 |
2257 __proto__: WebInspector.Widget.prototype | 2257 __proto__: WebInspector.Widget.prototype |
2258 } | 2258 } |
OLD | NEW |