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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 * @constructor | 675 * @constructor |
676 * @extends {WebInspector.ProfileHeader} | 676 * @extends {WebInspector.ProfileHeader} |
677 * @implements {WebInspector.OutputStream} | 677 * @implements {WebInspector.OutputStream} |
678 * @implements {WebInspector.OutputStreamDelegate} | 678 * @implements {WebInspector.OutputStreamDelegate} |
679 * @param {!WebInspector.Target} target | 679 * @param {!WebInspector.Target} target |
680 * @param {!WebInspector.CPUProfileType} type | 680 * @param {!WebInspector.CPUProfileType} type |
681 * @param {string=} title | 681 * @param {string=} title |
682 */ | 682 */ |
683 WebInspector.CPUProfileHeader = function(target, type, title) | 683 WebInspector.CPUProfileHeader = function(target, type, title) |
684 { | 684 { |
685 WebInspector.ProfileHeader.call(this, target, type, title || WebInspector.UI
String("Profile %d", type._nextProfileUid)); | 685 WebInspector.ProfileHeader.call(this, target, type, title || WebInspector.UI
String("Profile %d", type.nextProfileUid())); |
686 this._tempFile = null; | 686 this._tempFile = null; |
687 } | 687 } |
688 | 688 |
689 WebInspector.CPUProfileHeader.prototype = { | 689 WebInspector.CPUProfileHeader.prototype = { |
690 onTransferStarted: function() | 690 onTransferStarted: function() |
691 { | 691 { |
692 this._jsonifiedProfile = ""; | 692 this._jsonifiedProfile = ""; |
693 this.updateStatus(WebInspector.UIString("Loading\u2026 %s", Number.bytes
ToString(this._jsonifiedProfile.length)), true); | 693 this.updateStatus(WebInspector.UIString("Loading\u2026 %s", Number.bytes
ToString(this._jsonifiedProfile.length)), true); |
694 }, | 694 }, |
695 | 695 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 _notifyTempFileReady: function() | 888 _notifyTempFileReady: function() |
889 { | 889 { |
890 if (this._onTempFileReady) { | 890 if (this._onTempFileReady) { |
891 this._onTempFileReady(); | 891 this._onTempFileReady(); |
892 this._onTempFileReady = null; | 892 this._onTempFileReady = null; |
893 } | 893 } |
894 }, | 894 }, |
895 | 895 |
896 __proto__: WebInspector.ProfileHeader.prototype | 896 __proto__: WebInspector.ProfileHeader.prototype |
897 } | 897 } |
OLD | NEW |