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 26 matching lines...) Expand all Loading... |
37 this.adjustedTotal = this.profile.profileHead.total; | 37 this.adjustedTotal = this.profile.profileHead.total; |
38 this.adjustedTotal -= this.profile.idleNode ? this.profile.idleNode.total :
0; | 38 this.adjustedTotal -= this.profile.idleNode ? this.profile.idleNode.total :
0; |
39 this.initialize(new Profiler.CPUProfileView.NodeFormatter(this)); | 39 this.initialize(new Profiler.CPUProfileView.NodeFormatter(this)); |
40 } | 40 } |
41 | 41 |
42 /** | 42 /** |
43 * @override | 43 * @override |
44 */ | 44 */ |
45 wasShown() { | 45 wasShown() { |
46 super.wasShown(); | 46 super.wasShown(); |
47 var lineLevelProfile = Components.LineLevelProfile.instance(); | 47 var lineLevelProfile = PerfUI.LineLevelProfile.instance(); |
48 lineLevelProfile.reset(); | 48 lineLevelProfile.reset(); |
49 lineLevelProfile.appendCPUProfile(this.profile); | 49 lineLevelProfile.appendCPUProfile(this.profile); |
50 } | 50 } |
51 | 51 |
52 /** | 52 /** |
53 * @override | 53 * @override |
54 * @param {string} columnId | 54 * @param {string} columnId |
55 * @return {string} | 55 * @return {string} |
56 */ | 56 */ |
57 columnHeader(columnId) { | 57 columnHeader(columnId) { |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 * @param {!SDK.CPUProfileNode} node | 458 * @param {!SDK.CPUProfileNode} node |
459 */ | 459 */ |
460 constructor(depth, duration, startTime, selfTime, node) { | 460 constructor(depth, duration, startTime, selfTime, node) { |
461 this.depth = depth; | 461 this.depth = depth; |
462 this.duration = duration; | 462 this.duration = duration; |
463 this.startTime = startTime; | 463 this.startTime = startTime; |
464 this.selfTime = selfTime; | 464 this.selfTime = selfTime; |
465 this.node = node; | 465 this.node = node; |
466 } | 466 } |
467 }; | 467 }; |
OLD | NEW |