OLD | NEW |
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 if (name.endsWith(this.fileExtension())) | 173 if (name.endsWith(this.fileExtension())) |
174 name = name.substr(0, name.length - this.fileExtension().length); | 174 name = name.substr(0, name.length - this.fileExtension().length); |
175 var profile = this.createProfileLoadedFromFile(name); | 175 var profile = this.createProfileLoadedFromFile(name); |
176 profile.setFromFile(); | 176 profile.setFromFile(); |
177 this.setProfileBeingRecorded(profile); | 177 this.setProfileBeingRecorded(profile); |
178 this.addProfile(profile); | 178 this.addProfile(profile); |
179 profile.loadFromFile(file); | 179 profile.loadFromFile(file); |
180 }, | 180 }, |
181 | 181 |
182 /** | 182 /** |
183 * @param {!string} title | 183 * @param {string} title |
184 * @return {!WebInspector.ProfileHeader} | 184 * @return {!WebInspector.ProfileHeader} |
185 */ | 185 */ |
186 createProfileLoadedFromFile: function(title) | 186 createProfileLoadedFromFile: function(title) |
187 { | 187 { |
188 throw new Error("Needs implemented."); | 188 throw new Error("Needs implemented."); |
189 }, | 189 }, |
190 | 190 |
191 /** | 191 /** |
192 * @param {!WebInspector.ProfileHeader} profile | 192 * @param {!WebInspector.ProfileHeader} profile |
193 */ | 193 */ |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 importScript("HeapSnapshotCommon.js"); | 1341 importScript("HeapSnapshotCommon.js"); |
1342 importScript("HeapSnapshotProxy.js"); | 1342 importScript("HeapSnapshotProxy.js"); |
1343 importScript("HeapSnapshotDataGrids.js"); | 1343 importScript("HeapSnapshotDataGrids.js"); |
1344 importScript("HeapSnapshotGridNodes.js"); | 1344 importScript("HeapSnapshotGridNodes.js"); |
1345 importScript("HeapSnapshotView.js"); | 1345 importScript("HeapSnapshotView.js"); |
1346 importScript("ProfileLauncherView.js"); | 1346 importScript("ProfileLauncherView.js"); |
1347 importScript("CanvasProfileView.js"); | 1347 importScript("CanvasProfileView.js"); |
1348 importScript("CanvasReplayStateView.js"); | 1348 importScript("CanvasReplayStateView.js"); |
1349 | 1349 |
1350 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry
(); | 1350 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry
(); |
OLD | NEW |