| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="function_ref.html"> | 2 <link rel="import" href="function_ref.html"> |
| 3 <link rel="import" href="instance_ref.html"> | 3 <link rel="import" href="instance_ref.html"> |
| 4 <link rel="import" href="observatory_element.html"> | 4 <link rel="import" href="observatory_element.html"> |
| 5 <link rel="import" href="nav_bar.html"> | 5 <link rel="import" href="nav_bar.html"> |
| 6 <link rel="import" href="script_ref.html"> | 6 <link rel="import" href="script_ref.html"> |
| 7 <link rel="import" href="view_footer.html"> | 7 <link rel="import" href="view_footer.html"> |
| 8 | 8 |
| 9 <polymer-element name="code-view" extends="observatory-element"> | 9 <polymer-element name="code-view" extends="observatory-element"> |
| 10 <template> | 10 <template> |
| 11 <link rel="stylesheet" href="css/shared.css"> | 11 <link rel="stylesheet" href="css/shared.css"> |
| 12 <style> | 12 <style> |
| 13 .table { | 13 .table { |
| 14 table-layout: fixed; | 14 table-layout: fixed; |
| 15 } | 15 } |
| 16 | 16 |
| 17 th:nth-of-type(1), td:nth-of-type(1) { | 17 th:nth-of-type(1), td:nth-of-type(1) { |
| 18 min-width: 10em; | 18 min-width: 10em; |
| 19 text-align: left; | 19 text-align: left; |
| 20 } | 20 } |
| 21 | 21 |
| 22 th:nth-of-type(2), td:nth-of-type(2) { | 22 th:nth-of-type(2), td:nth-of-type(2) { |
| 23 min-width: 10em; | 23 min-width: 8em; |
| 24 text-align: left; | 24 text-align: left; |
| 25 } | 25 } |
| 26 | 26 |
| 27 th:nth-of-type(3), td:nth-of-type(3) { | 27 th:nth-of-type(3), td:nth-of-type(3) { |
| 28 padding-right: 3em; | 28 min-width: 8em; |
| 29 text-align: left; |
| 29 } | 30 } |
| 30 | 31 |
| 31 th:nth-of-type(4), td:nth-of-type(4) { | 32 th:nth-of-type(4), td:nth-of-type(4) { |
| 32 padding-left: 3em; | 33 text-align: left; |
| 33 overflow: visible; | 34 overflow: visible; |
| 34 white-space: pre; | 35 white-space: pre; |
| 35 display: block; | 36 padding-right: 1em; |
| 37 } |
| 38 |
| 39 th:nth-of-type(5), td:nth-of-type(5) { |
| 40 text-align: left; |
| 41 overflow: visible; |
| 36 } | 42 } |
| 37 | 43 |
| 38 tr:hover > td { | 44 tr:hover > td { |
| 39 background-color: #F4C7C3; | 45 background-color: #F4C7C3; |
| 40 } | 46 } |
| 41 | 47 |
| 42 </style> | 48 </style> |
| 43 <nav-bar> | 49 <nav-bar> |
| 44 <top-nav-menu></top-nav-menu> | 50 <top-nav-menu></top-nav-menu> |
| 45 <vm-nav-menu vm="{{ code.isolate.vm }}"></vm-nav-menu> | 51 <vm-nav-menu vm="{{ code.isolate.vm }}"></vm-nav-menu> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 </div> | 85 </div> |
| 80 <div class="memberItem"> | 86 <div class="memberItem"> |
| 81 <div class="memberName">Inclusive</div> | 87 <div class="memberName">Inclusive</div> |
| 82 <div class="memberValue">{{ code.profile.formattedInclusiveTicks }}</d
iv> | 88 <div class="memberValue">{{ code.profile.formattedInclusiveTicks }}</d
iv> |
| 83 </div> | 89 </div> |
| 84 <div class="memberItem"> | 90 <div class="memberItem"> |
| 85 <div class="memberName">Exclusive</div> | 91 <div class="memberName">Exclusive</div> |
| 86 <div class="memberValue">{{ code.profile.formattedExclusiveTicks }}</d
iv> | 92 <div class="memberValue">{{ code.profile.formattedExclusiveTicks }}</d
iv> |
| 87 </div> | 93 </div> |
| 88 <div class="memberItem"> | 94 <div class="memberItem"> |
| 89 <div class="memberName">Constant object pool</div> | 95 <div class="memberName">Object pool</div> |
| 90 <div class="memberValue"> | 96 <div class="memberValue"> |
| 91 <any-service-ref ref="{{ code.objectPool }}"></any-service-ref> | 97 <any-service-ref ref="{{ code.objectPool }}"></any-service-ref> |
| 92 </div> | 98 </div> |
| 93 </div> | 99 </div> |
| 94 <template if="{{ code.inlinedFunctions.isNotEmpty }}"> | 100 <template if="{{ code.inlinedFunctions.isNotEmpty }}"> |
| 95 <div class="memberItem"> | 101 <div class="memberItem"> |
| 96 <div class="memberName">inlined functions ({{ code.inlinedFunctions.
length }})</div> | 102 <div class="memberName">inlined functions ({{ code.inlinedFunctions.
length }})</div> |
| 97 <div class="memberValue"> | 103 <div class="memberValue"> |
| 98 <curly-block expand="{{ code.inlinedFunctions.length <= 8 }}"> | 104 <curly-block expand="{{ code.inlinedFunctions.length <= 8 }}"> |
| 99 <div class="memberList"> | 105 <div class="memberList"> |
| 100 <template repeat="{{ func in code.inlinedFunctions }}"> | 106 <template repeat="{{ func in code.inlinedFunctions }}"> |
| 101 <div class="memberItem"> | 107 <div class="memberItem"> |
| 102 <div class="memberValue"> | 108 <div class="memberValue"> |
| 103 <function-ref ref="{{ func }}"></function-ref> | 109 <function-ref ref="{{ func }}"></function-ref> |
| 104 </div> | 110 </div> |
| 105 </div> | 111 </div> |
| 106 </template> | 112 </template> |
| 107 </div> | 113 </div> |
| 108 </curly-block> | 114 </curly-block> |
| 109 </div> | 115 </div> |
| 110 </div> | 116 </div> |
| 111 </template> | 117 </template> |
| 112 </div> | 118 </div> |
| 113 </div> | 119 </div> |
| 114 <div class="content-centered-big"> | 120 <div class="content-centered-big"> |
| 115 <hr> | 121 <hr> |
| 116 <table id="inlineRangeTable" class="table"> | 122 <table id="inlineRangeTable" class="table"> |
| 117 <thead id="inlineRangeTableHead"> | 123 <thead id="inlineRangeTableHead"> |
| 118 <tr> | 124 <tr> |
| 119 <th class="address" title="Address range">Address Range</th> | 125 <th class="address">Address Range</th> |
| 120 <th class="tick" title="Inclusive">Inclusive</th> | 126 <th class="tick">Inclusive</th> |
| 121 <th class="tick" title="Exclusive">Exclusive</th> | 127 <th class="tick">Exclusive</th> |
| 122 <th title="Functions">Functions</th> | 128 <th>Functions</th> |
| 123 </tr> | 129 </tr> |
| 124 </thead> | 130 </thead> |
| 125 <tbody class="monospace" id="inlineRangeTableBody"> | 131 <tbody class="monospace" id="inlineRangeTableBody"> |
| 126 </tbody> | 132 </tbody> |
| 127 </table> | 133 </table> |
| 128 <hr> | 134 <hr> |
| 129 <table id="disassemblyTable" class="table"> | 135 <table id="disassemblyTable" class="table"> |
| 130 <thead id="disassemblyTableHead"> | 136 <thead id="disassemblyTableHead"> |
| 131 <tr> | 137 <tr> |
| 132 <th class="address" title="Address">Address</th> | 138 <th class="address">Address</th> |
| 133 <th class="tick" title="Inclusive">Inclusive</th> | 139 <th class="tick" title="Ticks with PC on the stack">Inclusive</th> |
| 134 <th class="tick" title="Exclusive">Exclusive</th> | 140 <th class="tick" title="Ticks with PC at top of stack">Exclusive</th
> |
| 135 <th class="disassembly" title="Disassembly">Disassembly</th> | 141 <th class="disassembly">Disassembly</th> |
| 142 <th class="object">Object</th> |
| 136 </tr> | 143 </tr> |
| 137 </thead> | 144 </thead> |
| 138 <tbody class="monospace" id="disassemblyTableBody"> | 145 <tbody class="monospace" id="disassemblyTableBody"> |
| 139 </tbody> | 146 </tbody> |
| 140 </table> | 147 </table> |
| 141 </div> | 148 </div> |
| 142 <view-footer></view-footer> | 149 <view-footer></view-footer> |
| 143 </template> | 150 </template> |
| 144 </polymer-element> | 151 </polymer-element> |
| 145 | 152 |
| 146 <script type="application/dart" src="code_view.dart"></script> | 153 <script type="application/dart" src="code_view.dart"></script> |
| OLD | NEW |