DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (1e8cfaa99484)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title data-l10n-id="about-performance-title"/>
    <link rel="icon" type="image/svg+xml" id="favicon"
          href="chrome://global/skin/icons/performance.svg"/>
    <link rel="stylesheet" href="chrome://global/skin/in-content/common.css"
          type="text/css"/>
    <link rel="localization" href="toolkit/about/aboutPerformance.ftl"/>
    <script type="text/javascript" src="chrome://global/content/aboutPerformance.js"></script>
    <style>
      @import url("chrome://global/skin/in-content/common.css");

      html {
        --aboutSupport-table-background: #ebebeb;
        background-color: var(--in-content-page-background);
      }
      body {
        margin: 40px 48px;
      }
      .hidden {
        display: none;
      }
      .summary .title {
        font-weight: bold;
      }
      a {
        text-decoration: none;
      }
      a.more {
        margin-left: 2ch;
      }
      ul.hidden_additional_items {
        padding-top: 0;
        margin-top: 0;
      }
      ul.visible_items {
        padding-bottom: 0;
        margin-bottom: 0;
      }
      li.delta {
        margin-top: .5em;
      }
      h2 {
        font-size: 1.46em;
        font-weight: 300;
        line-height: 1.3em;
        margin: 16px 0;
        -moz-user-select: none;
      }
      button.show_all_items {
        margin-top: .5cm;
        margin-left: 1cm;
      }
      body {
        margin-left: 1cm;
        overflow-x: hidden;
      }
      div.measuring {
         background: url(chrome://global/skin/media/throbber.png) no-repeat center;
         min-width: 36px;
         min-height: 36px;
      }
      li.delta {
        border-left-width: 5px;
        border-left-style: solid;
        padding-left: 1em;
        list-style: none;
      }
      li.delta[impact="0"] {
        border-left-color: rgb(0, 255, 0);
      }
      li.delta[impact="1"] {
        border-left-color: rgb(24, 231, 0);
      }
      li.delta[impact="2"] {
        border-left-color: rgb(48, 207, 0);
      }
      li.delta[impact="3"] {
        border-left-color: rgb(72, 183, 0);
      }
      li.delta[impact="4"] {
        border-left-color: rgb(96, 159, 0);
      }
      li.delta[impact="5"] {
        border-left-color: rgb(120, 135, 0);
      }
      li.delta[impact="6"] {
        border-left-color: rgb(144, 111, 0);
      }
      li.delta[impact="7"] {
        border-left-color: rgb(168, 87, 0);
      }
      li.delta[impact="8"] {
        border-left-color: rgb(192, 63, 0);
      }
      li.delta[impact="9"] {
        border-left-color: rgb(216, 39, 0);
      }
      li.delta[impact="10"] {
        border-left-color: rgb(240, 15, 0);
      }
      li.delta[impact="11"] {
        border-left-color: rgb(255, 0, 0);
      }

      #dispatch-table {
        -moz-user-select: none;
        font-size: 1em;
        border-spacing: 0;
        background-color: var(--in-content-box-background);
        margin: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 40em;
      }

      /* Avoid scrolling the header */
      #dispatch-tbody {
        display: block;
        margin-top: 2em;
      }
      #dispatch-thead {
        position: fixed;
        z-index: 1;
        height: 2em;
        border-bottom: 1px solid var(--in-content-border-color);
        min-width: 40em;
      }
      #dispatch-thead, #dispatch-tbody tr {
        display: table;
        table-layout: fixed;
        width: 100%;
      }
      #dispatch-table td:nth-child(2) {
        width: 8em;
      }
      #dispatch-table td:nth-child(3) {
        width: 12em;
      }
      #dispatch-table td:nth-child(4) {
        width: 5em;
      }
      #dispatch-tbody td:nth-child(4) {
        text-align: end;
      }
      #dispatch-table td:nth-child(5) {
        width: 20px;
      }

      /* Show action icons on selected or hovered rows */
      tr:-moz-any([selected], :hover) > td > .action-icon {
        padding: 1px 10px;
        opacity: 1;
      }
      /* The action icons have a relative position, so that we can use
       * absolutely positioned ::before and ::after pseudo elements.
       * ::before is used to display the square background on hover/active
       * ::after is used to display the icons as a background that can be
       * flipped using a CSS transform in RTL mode. */
      .action-icon {
        position: relative;
        opacity: 0;
      }
      /* Ensure both pseudo elements have the same size and position. */
      .action-icon::before, .action-icon::after {
        height: 200%;
        position: absolute;
        top: -50%;
        left: -3px;
        padding-left: 13px;
        padding-right: 13px;
      }

      /* square background */
      .action-icon::before {
        content: "";
        background-color: currentColor;
        opacity: 0;
      }
      .action-icon:hover::before {
        opacity: 0.1;
      }
      .action-icon:hover:active::before {
        opacity: 0.2;
      }

      /* icons */
      .action-icon::after {
        -moz-context-properties: fill, fill-opacity;
        fill-opacity: 0;
        background-repeat: no-repeat;
        background-position: center;
        fill: currentColor;
        line-height: 100%;
      }
      .addon-icon::after {
        content: url("chrome://global/skin/icons/shortcut.svg");
        top: 2px;
        left: -11px;
        width: 16px;
      }
      .addon-icon:dir(rtl)::after {
        transform: scaleX(-1);
      }
      .close-icon::after {
        content: url("chrome://global/skin/icons/close.svg");
        height: 100%;
        top: 0;
        left: -13px;
        transform: scale(1.2);
      }

      #dispatch-table > thead > tr > td {
        border: none;
        background-color: var(--in-content-box-background-hover);
      }
      #dispatch-table > thead > tr > td:not(:first-child) {
        border-inline-start-width: 1px;
        border-inline-start-style: solid;
        border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1;
        border-bottom: 1px solid var(--in-content-border-color);
      }
      td {
        padding: 5px 10px;
        min-height: 2em;
        color: var(--in-content-text-color);
        max-width: 70vw;
        overflow: hidden;
        white-space: nowrap;
      }
      #dispatch-tbody > tr > td:first-child {
        text-overflow: ellipsis;
        padding-inline-start: 32px;
        background-repeat: no-repeat;
        background-size: 16px 16px;
        background-position-y: center;
      }
      #dispatch-tbody > tr > td.root{
        background-position-x: left 36px;
        padding-inline-start: 62px;
      }
      #dispatch-tbody > tr > td.root:dir(rtl) {
        background-position-x: right 36px;
      }
      .twisty {
        margin-inline-start: -62px;
        margin-inline-end: 26px;
        padding-inline-end: 18px;
        padding-inline-start: 18px;
        position: relative;
      }
      /* Putting the background image in a positioned pseudo element lets us
       * use CSS transforms on the background image, which we need for rtl. */
      .twisty::before {
        content: url("chrome://global/skin/icons/twisty-collapsed.svg");
        position: absolute;
        display: block;
        line-height: 50%;
        top: 4px; /* Half the image's height */
        width: 100%;
        left: 0;
        text-align: center;
        -moz-context-properties: fill;
        fill: currentColor;
      }
      .twisty:dir(rtl)::before {
        transform: scaleX(-1);
      }
      .twisty.open::before {
        content: url("chrome://global/skin/icons/twisty-expanded.svg");
      }
      #dispatch-tbody > tr > td.indent {
        padding-inline-start: 88px;
        background-position-x: left 62px;
      }
      #dispatch-tbody > tr > td.indent:dir(rtl) {
        background-position-x: right 62px;
      }
      #dispatch-tbody > tr > td.tracker {
        background-image: url("chrome://browser/skin/controlcenter/trackers.svg");
        -moz-context-properties: fill;
        fill: rgb(224, 41, 29);
      }
      #dispatch-tbody > tr > td.worker {
        background-image: url("chrome://devtools/skin/images/debugging-workers.svg");
        -moz-context-properties: fill;
        fill: #808080;
      }

      #dispatch-tbody > tr[selected] > td {
        background-color: var(--in-content-item-selected);
        color: var(--in-content-selected-text);
      }
      #dispatch-tbody > tr:hover {
        background-color: var(--in-content-item-hover);
      }

      .options {
        width: 100%;
      }
      .options > .toggle-container-with-text {
        display: inline-flex;
      }
      .options > .toggle-container-with-text:not(:first-child) {
        margin-inline-start: 2ch;
      }
    </style>
  </head>
  <body onload="go()">
    <div class="options">
      <div class="toggle-container-with-text">
        <input type="checkbox" checked="false" id="check-display-recent" role="checkbox"></input>
        <label for="check-display-recent" id="label-display-recent">Display only the last few seconds.</label>
      </div>
      <div class="toggle-container-with-text">
        <input type="checkbox" checked="true" id="check-autorefresh" role="checkbox"></input>
        <label for="check-autorefresh">Refresh automatically</label>
      </div>
    </div>
    <div>
      <h2>Performance of Web pages</h2>
      <div id="webpages" class="measuring">
      </div>
    </div>
    <div>
      <table id="dispatch-table">
        <thead id="dispatch-thead">
          <tr>
            <td data-l10n-id="column-name"/>
            <td data-l10n-id="column-type"/>
            <td data-l10n-id="column-energy-impact"/>
            <td data-l10n-id="column-memory"/>
            <td></td><!-- actions -->
          </tr>
        </thead>
        <tbody id="dispatch-tbody"></tbody>
      </table>
    </div>
  </body>
</html>