home *** CD-ROM | disk | FTP | other *** search
- <!doctype html>
-
- <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file. -->
-
- <!-- This page uses Flot version 0.7 in compressed form for efficiency.
- Readable Flot source is available at http://code.google.com/p/flot/
- Good caliber Flot API docs are at: http://people.iola.dk/olau/flot/API.txt
- as of 6/2012. -->
-
- <html i18n-values="dir:textdirection;">
- <head>
- <meta charset="utf-8">
- <title i18n-content="title"></title>
- <style>/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file. */
-
- /* "Performance" title */
- h1 {
- -webkit-margin-after: 1em;
- -webkit-margin-before: 21px;
- -webkit-margin-start: 23px;
- -webkit-user-select: none;
- color: rgb(92, 97, 102);
- display: block;
- font-size: 1.5em;
- font-weight: normal;
- line-height: 1;
- }
-
- /* Settings panel category headings */
- h2 {
- -webkit-user-select: none;
- border: 0;
- color: inherit;
- cursor: pointer;
- font: inherit;
- font-size: 1.2em;
- font-weight: normal;
- line-height: 1;
- margin: 0;
- }
-
- /* Settings panel subcategory headings */
- h3 {
- -webkit-margin-after: 3px;
- -webkit-user-select: none;
- color: rgb(48, 57, 66);
- font-size: 1em;
- font-weight: normal;
- line-height: 1;
- }
-
- /* Axis labels */
- h4 {
- -webkit-margin-after: 0;
- -webkit-margin-before: 0;
- color: rgb(92, 97, 102);
- font-size: 12px;
- font-weight: bold;
- line-height: 12px;
- }
-
- .accordion {
- left: 0;
- position: fixed;
- top: 0;
- width: 200px;
- }
-
- details {
- margin-bottom: 20px;
- }
-
- summary {
- -webkit-margin-start: 23px;
- -webkit-user-select: none;
- color: #777;
- cursor: default;
- }
-
- summary:focus {
- outline: 0;
- }
-
- summary::after {
- background: white;
- content: '';
- height: 32px;
- left: 0;
- margin-top: -23px;
- position: absolute;
- width: 6px;
- }
-
- summary:hover {
- color: rgb(70, 78, 90);
- }
-
- details[open] summary::after {
- background: #555;
- }
-
- details[open] summary {
- color: #333;
- }
-
- details summary::-webkit-details-marker {
- display: none;
- }
-
- .accordion-contents {
- -webkit-margin-start: 35px;
- color: #555;
- }
-
- .spacer {
- -webkit-box-flex: 1;
- }
-
- input[type='radio']:checked+span {
- color: #222;
- }
-
- input[type='checkbox']:checked+span {
- color: #222;
- }
-
- .input-label:hover {
- color: #222;
- }
-
- #warnings-box {
- -webkit-margin-after: 15px;
- -webkit-margin-before: 21px;
- display: none;
- text-align: center;
- }
-
- #warnings-text {
- background-color: pink;
- box-shadow: 0 1px 10px 1px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15);
- display: inline-block;
- max-width: 1000px;
- padding: 6px;
- }
-
- .warning {
- display: none;
- }
-
- #time-shift-category {
- display: inline-block;
- }
-
- #charts {
- -webkit-margin-start: 200px;
- min-width: 800px;
- width: 80%;
- }
-
- .chart {
- position: relative;
- }
-
- .grid {
- -webkit-margin-after: 15px;
- height: 500px;
- position: relative;
- }
-
- /* This is necessary since rotation does not work well with text elements, which
- * have an adjustable size. Calculations for each section are listed. */
- .yaxis-label-container {
- -webkit-transform: rotate(-90deg);
- left: -238px; /* .grid height / 2 - h4 line-height */
- position: absolute;
- text-align: center;
- top: 244px; /* .grid height / 2 - .yaxis-label line-height / 2 */
- width: 500px; /* .grid height */
- }
-
- .event-label {
- background: #eee;
- border: 1px solid;
- font-family: Arial, sans-serif;
- font-size: 0.7em;
- position: absolute;
- }
-
- .horizontal-box {
- -webkit-box-orient: horizontal;
- display: -webkit-box;
- }
-
- h2#flag-warning {
- display: none;
- }
-
- button {
- -webkit-padding-end: 10px;
- -webkit-padding-start: 10px;
- background-color: buttonface;
- background-image: -webkit-linear-gradient(#EDEDED, #EDEDED 38%, #DEDEDE);
- border: 1px solid rgba(0, 0, 0, 0.25);
- border-radius: 2px;
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
- inset 0 1px 2px rgba(255, 255, 255, 0.75);
- color: #444;
- font: inherit;
- height: 1.5em;
- margin: 0 1px 0 0;
- min-width: 4em;
- text-shadow: #F0F0F0 0 1px 0;
- }
-
- button:active {
- background-image: -webkit-linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);
- box-shadow: none;
- text-shadow: none;
- }
- </style>
- </head>
- <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
- <div id="warnings-box">
- <div id="warnings-text">
- <span id="flag-not-enabled-warning" class="warning">
- <span i18n-content="flagNotEnabledWarning"></span>
- <a target="blank_" i18n-content="enableFlag"
- i18n-values="href:enableFlagsURL">
- </a>
- </span>
- <span id="no-aggregation-warning" class="warning"
- i18n-content="noAggregationWarning">
- </span>
- </div>
- </div>
- <div class="horizontal-box">
- <div id="settings-accordion" class="accordion">
- <h1 id="performance-heading" i18n-content="title"></h1>
- <div id="time-range-section">
- <details>
- <summary>
- <h2 id="time-range-title" i18n-content="timeRangeSection"></h2>
- </summary>
- <div class="accordion-contents">
- <h3 id="time-resolution-header"
- i18n-content="timeResolutionCategory">
- </h3>
- <div id="choose-time-range">
- </div>
- <div id="time-shift-category">
- <h3 i18n-content="timeRangeButtonHeading"></h3>
- <div class="horizontal-box">
- <button id="back-time" title="Back"><<</button>
- <div class="spacer"></div>
- <button id="forward-time" title="Forward">>></button>
- </div>
- </div>
- <h3 id="aggregation-header" i18n-content="aggregationCategory">
- </h3>
- <div id="choose-aggregation">
- </div>
- </div>
- </details>
- </div>
- <div id="metrics-section">
- <details>
- <summary>
- <h2 id="choose-metrics-header" i18n-content="metricsSection"></h2>
- </summary>
- <div class="accordion-contents">
- <div id="choose-metrics">
- </div>
- </div>
- </details>
- </div>
- <div id="events-section">
- <details>
- <summary>
- <h2 id="choose-events-header" i18n-content="eventsSection"></h2>
- </summary>
- <div class="accordion-contents">
- <div id="choose-events">
- </div>
- </div>
- </details>
- </div>
- </div>
- <div id="charts">
- </div>
- <div id="templates" hidden>
- <div id="chart-template" class="chart">
- <div class="grid"></div>
- <div class="yaxis-label-container"><h4></h4></div>
- </div>
- <div id="label-template" class="event-label"></div>
- <h3 id="category-label-template"></h3>
- <div id="category-template">
- <h3 class="category-heading"></h3>
- <div class="checkbox-group">
- </div>
- </div>
- <div id="checkbox-template">
- <label class="input-label">
- <input type="checkbox">
- <span></span>
- </label>
- </div>
- <div id="radio-template" class="radio">
- <label class="input-label">
- <input type="radio">
- <span></span>
- </label>
- </div>
- </div>
- </div>
- <script src="chrome://resources/js/cr.js"></script>
- <script src="chrome://resources/js/load_time_data.js"></script>
- <script src="chrome://resources/js/util.js"></script>
- <script src="chrome://performance/strings.js"></script>
- <script src="chrome://resources/js/i18n_template2.js"></script>
- <script src="jquery.js"></script>
- <script src="flot.js"></script>
- <script src="chart.js"></script>
- </body>
- </html>
-