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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 { | 409 { |
410 var node = event.data; | 410 var node = event.data; |
411 if (!node || !node.scriptId) | 411 if (!node || !node.scriptId) |
412 return; | 412 return; |
413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId) | 413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId) |
414 if (!script) | 414 if (!script) |
415 return; | 415 return; |
416 var uiLocation = script.rawLocationToUILocation(node.lineNumber); | 416 var uiLocation = script.rawLocationToUILocation(node.lineNumber); |
417 if (!uiLocation) | 417 if (!uiLocation) |
418 return; | 418 return; |
419 WebInspector.showPanel("scripts").showUILocation(uiLocation); | 419 WebInspector.showPanel("sources").showUILocation(uiLocation); |
420 }, | 420 }, |
421 | 421 |
422 _changeView: function() | 422 _changeView: function() |
423 { | 423 { |
424 if (!this.profile) | 424 if (!this.profile) |
425 return; | 425 return; |
426 | 426 |
427 switch (this.viewSelectComboBox.selectedOption().value) { | 427 switch (this.viewSelectComboBox.selectedOption().value) { |
428 case WebInspector.CPUProfileView._TypeFlame: | 428 case WebInspector.CPUProfileView._TypeFlame: |
429 this._ensureFlameChartCreated(); | 429 this._ensureFlameChartCreated(); |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 this.title = file.name; | 926 this.title = file.name; |
927 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026"); | 927 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026"); |
928 this.sidebarElement.wait = true; | 928 this.sidebarElement.wait = true; |
929 | 929 |
930 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this
); | 930 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this
); |
931 fileReader.start(this); | 931 fileReader.start(this); |
932 }, | 932 }, |
933 | 933 |
934 __proto__: WebInspector.ProfileHeader.prototype | 934 __proto__: WebInspector.ProfileHeader.prototype |
935 } | 935 } |
OLD | NEW |