mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
be83eaa3c8
- Bug 1146827 - Ensure lazy loading DebuggerServer dependencies that aren't useful on device. r=jryans (4cbba9836) - Bug 1141507 - Some preliminary refactors;r=jlong (c78495f7d) - Bug 1141507 - Refactor breakpoint sliding for source mapped sources;r=jlong (c0c93dbf2) - Bug 1134174 - Reenable devtools memory footprint assertion with lower thresholds. r=janx (0d6fda081) - Bug 1147972 - Test setting a line breakpoint;r=jlong (9985aae7d) - Bug 1147972 - Test setting a breakpoint on a line in a gcd script;r=jlong (2524db8b6) - Bug 1147972 - Test setting a breakpoint on a line with no offsets;r=jlong (cc1385153) - Bug 1147972 - Test setting a breakpoint on a line with no offsets in a gcd script;r=jlong (fff2531a8) - Bug 1147972 - Test setting a breakpoint on a line with no offsets at the end of a script;r=jlong (8a4d52a86) - Bug 1147972 - Test setting a breakpoint on a line with multiple offsets;r=jlong (488f20b99) - Bug 1147972 - Test setting a breakpoint on a line with multiple statements;r=jlong (3bf166dc3) - Bug 1129784 - Implement column sliding for source mapped sources;r=jlong (dc39dd7a4) - Bug 1129784 - Implement column sliding for non-sourcemapped sources;r=jlong (620fb059e) - Bug 1147972 - Test setting a breakpoint on a column;r=jlong (9e8ba1469) - Bug 1124258 - Avoid using `getChildScripts` in `onNewScript` in the debugger. r=ejpbruel (223d5bee4) - Bug 1118332 - only load the HTML source from cache in the debugger r=fitzgen (8544dbb2c) - Bug 1132764 - Part 0: Warn when allocations log overflows. r=vp (e7e9b3690) - Bug 1132764 - Part 1: MemoryActor.prototype.startRecordingAllocations should be (c692a13b4) - Bug 1132764 - Part 2: Test allocations log length over RDP; r=vp (7f71e06c1) - Bug 1136945 - Convert GC events from memory actor to be emitted as pseudo-markers from the TimelineActor. Pull out the core of the MemoryActor into a bridge, so it does not have to be used over RDP. r=vp,fitzgen (d6ff0d20f)
669 lines
14 KiB
CSS
669 lines
14 KiB
CSS
/* vim:set ts=2 sw=2 sts=2 et: */
|
|
/* 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/. */
|
|
|
|
/* CSS Variables specific to this panel that aren't defined by the themes */
|
|
.theme-dark {
|
|
--cell-border-color: rgba(255,255,255,0.15);
|
|
--focus-cell-border-color: rgba(255,255,255,0.5);
|
|
--row-alt-background-color: rgba(29,79,115,0.15);
|
|
--row-hover-background-color: rgba(29,79,115,0.25);
|
|
}
|
|
|
|
.theme-light {
|
|
--cell-border-color: rgba(0,0,0,0.15);
|
|
--focus-cell-border-color: rgba(0,0,0,0.3);
|
|
--row-alt-background-color: rgba(76,158,217,0.1);
|
|
--row-hover-background-color: rgba(76,158,217,0.2);
|
|
}
|
|
|
|
/* Toolbar */
|
|
|
|
#performance-toolbar > tabs,
|
|
#performance-toolbar {
|
|
-moz-border-end-color: var(--theme-splitter-color);
|
|
}
|
|
|
|
#performance-toolbar-control-other {
|
|
-moz-padding-end: 5px;
|
|
}
|
|
|
|
#performance-toolbar-controls-detail-views > toolbarbutton {
|
|
min-width: 0;
|
|
}
|
|
|
|
#performance-toolbar-controls-detail-views .toolbarbutton-text {
|
|
-moz-padding-start: 4px;
|
|
-moz-padding-end: 8px;
|
|
}
|
|
|
|
#filter-button {
|
|
list-style-image: url(timeline-filter.svg#filter);
|
|
min-width: 24px;
|
|
}
|
|
|
|
#filter-button[disabled] {
|
|
list-style-image: url(timeline-filter.svg#filter-disabled);
|
|
}
|
|
|
|
#filter-button[open] {
|
|
list-style-image: url(timeline-filter.svg#filter-open);
|
|
}
|
|
|
|
#performance-filter-menupopup > menuitem:before {
|
|
content: "";
|
|
display: block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin: 0 8px;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
/* Recording Notice */
|
|
|
|
#performance-view .notice-container {
|
|
font-size: 120%;
|
|
background-color: var(--theme-toolbar-background);
|
|
color: var(--theme-body-color);
|
|
padding-bottom: 20vh;
|
|
}
|
|
|
|
#performance-view .notice-container button {
|
|
min-width: 30px;
|
|
min-height: 28px;
|
|
margin: 0;
|
|
}
|
|
|
|
#performance-view .notice-container vbox {
|
|
text-align: center;
|
|
}
|
|
|
|
.console-profile-command {
|
|
font-family: monospace;
|
|
margin: 3px 2px;
|
|
}
|
|
|
|
.theme-dark #performance-view toolbarbutton.record-button {
|
|
background-color: var(--theme-tab-toolbar-background);
|
|
border: 1px solid var(--theme-sidebar-background);
|
|
}
|
|
|
|
.theme-light #performance-view toolbarbutton.record-button {
|
|
background-color: rgba(221, 221, 221, 1);
|
|
border: 1px solid rgba(204, 204, 204, 1);
|
|
}
|
|
|
|
#performance-view toolbarbutton.record-button {
|
|
margin: 5px;
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
text-shadow: none;
|
|
}
|
|
|
|
#performance-view toolbarbutton.record-button[checked],
|
|
#performance-view toolbarbutton.record-button[checked] {
|
|
color: var(--theme-selection-color);
|
|
background: var(--theme-selection-background);
|
|
}
|
|
|
|
#details-pane-container .buffer-status-message,
|
|
#details-pane-container .buffer-status-message-full {
|
|
display: none;
|
|
}
|
|
|
|
#details-pane-container[buffer-status="in-progress"] .buffer-status-message {
|
|
display: block;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
#details-pane-container[buffer-status="full"] .buffer-status-message {
|
|
display: block;
|
|
color: var(--theme-highlight-red);
|
|
font-weight: bold;
|
|
opacity: 1;
|
|
}
|
|
|
|
#details-pane-container[buffer-status="full"] .buffer-status-message-full {
|
|
display: block;
|
|
}
|
|
|
|
/* Overview Panel */
|
|
|
|
#main-record-button {
|
|
list-style-image: url(profiler-stopwatch.svg);
|
|
}
|
|
|
|
#main-record-button[checked] {
|
|
list-style-image: url(profiler-stopwatch-checked.svg);
|
|
}
|
|
|
|
#main-record-button[locked] {
|
|
pointer-events: none;
|
|
}
|
|
|
|
#main-record-button .button-icon {
|
|
margin: 0;
|
|
}
|
|
|
|
#main-record-button .button-text {
|
|
display: none;
|
|
}
|
|
|
|
/* Details Panel */
|
|
|
|
#select-waterfall-view {
|
|
list-style-image: url(performance-icons.svg#details-waterfall);
|
|
}
|
|
|
|
#select-js-calltree-view,
|
|
#select-memory-calltree-view {
|
|
list-style-image: url(performance-icons.svg#details-call-tree);
|
|
}
|
|
|
|
#select-js-flamegraph-view,
|
|
#select-memory-flamegraph-view {
|
|
list-style-image: url(performance-icons.svg#details-flamegraph);
|
|
}
|
|
|
|
/* Profile call tree */
|
|
|
|
.call-tree-cells-container {
|
|
/* Hack: force hardware acceleration */
|
|
transform: translateZ(1px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.call-tree-cells-container[categories-hidden] .call-tree-category {
|
|
display: none;
|
|
}
|
|
|
|
.call-tree-header {
|
|
font-size: 90%;
|
|
padding-top: 2px !important;
|
|
padding-bottom: 2px !important;
|
|
}
|
|
|
|
.call-tree-header[type="duration"],
|
|
.call-tree-cell[type="duration"],
|
|
.call-tree-header[type="self-duration"],
|
|
.call-tree-cell[type="self-duration"] {
|
|
width: 6vw;
|
|
}
|
|
|
|
.call-tree-header[type="percentage"],
|
|
.call-tree-cell[type="percentage"],
|
|
.call-tree-header[type="self-percentage"],
|
|
.call-tree-cell[type="self-percentage"] {
|
|
width: 5vw;
|
|
}
|
|
|
|
.call-tree-header[type="samples"],
|
|
.call-tree-cell[type="samples"] {
|
|
width: 4.5vw;
|
|
}
|
|
|
|
.call-tree-header[type="allocations"],
|
|
.call-tree-cell[type="allocations"],
|
|
.call-tree-header[type="self-allocations"],
|
|
.call-tree-cell[type="self-allocations"] {
|
|
width: 7vw;
|
|
}
|
|
|
|
.call-tree-header[type="function"],
|
|
.call-tree-cell[type="function"] {
|
|
-moz-box-flex: 1;
|
|
}
|
|
|
|
.call-tree-header,
|
|
.call-tree-cell {
|
|
-moz-box-align: center;
|
|
overflow: hidden;
|
|
padding: 1px 4px;
|
|
color: var(--theme-body-color);
|
|
-moz-border-end-color: var(--cell-border-color);
|
|
}
|
|
|
|
.call-tree-header:not(:last-child),
|
|
.call-tree-cell:not(:last-child) {
|
|
-moz-border-end-width: 1px;
|
|
-moz-border-end-style: solid;
|
|
}
|
|
|
|
.call-tree-header:not(:last-child) {
|
|
text-align: center;
|
|
}
|
|
|
|
.call-tree-cell:not(:last-child) {
|
|
text-align: end;
|
|
}
|
|
|
|
.call-tree-header {
|
|
background-color: var(--theme-tab-toolbar-background);
|
|
}
|
|
|
|
.call-tree-item:last-child:not(:focus) {
|
|
border-bottom: 1px solid var(--cell-border-color);
|
|
}
|
|
|
|
.call-tree-item:nth-child(2n) {
|
|
background-color: var(--row-alt-background-color);
|
|
}
|
|
|
|
.call-tree-item:hover {
|
|
background-color: var(--row-hover-background-color);
|
|
}
|
|
|
|
.call-tree-item:focus {
|
|
background-color: var(--theme-selection-background);
|
|
}
|
|
|
|
.call-tree-item:focus label {
|
|
color: var(--theme-selection-color) !important;
|
|
}
|
|
|
|
.call-tree-item:focus .call-tree-cell {
|
|
-moz-border-end-color: var(--focus-cell-border-color);
|
|
}
|
|
|
|
.call-tree-item:not([origin="content"]) .call-tree-name,
|
|
.call-tree-item:not([origin="content"]) .call-tree-url,
|
|
.call-tree-item:not([origin="content"]) .call-tree-line,
|
|
.call-tree-item:not([origin="content"]) .call-tree-column {
|
|
/* Style chrome and non-JS nodes differently. */
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.call-tree-url {
|
|
-moz-margin-start: 4px !important;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.call-tree-url:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.call-tree-url, .tree-widget-item:not(.theme-selected) .opt-url {
|
|
color: var(--theme-highlight-blue);
|
|
}
|
|
|
|
.call-tree-line, .tree-widget-item:not(.theme-selected) .opt-line {
|
|
color: var(--theme-highlight-orange);
|
|
}
|
|
|
|
.call-tree-column {
|
|
color: var(--theme-highlight-orange);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.call-tree-host {
|
|
-moz-margin-start: 8px !important;
|
|
font-size: 90%;
|
|
color: var(--theme-content-color2);
|
|
}
|
|
|
|
.call-tree-name[value=""],
|
|
.call-tree-url[value=""],
|
|
.call-tree-line[value=""],
|
|
.call-tree-column[value=""],
|
|
.call-tree-host[value=""] {
|
|
display: none;
|
|
}
|
|
|
|
.call-tree-zoom {
|
|
-moz-appearance: none;
|
|
background-color: transparent;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 11px;
|
|
min-width: 11px;
|
|
-moz-margin-start: 8px !important;
|
|
cursor: zoom-in;
|
|
opacity: 0;
|
|
}
|
|
|
|
.theme-dark .call-tree-zoom {
|
|
background-image: url(magnifying-glass.png);
|
|
}
|
|
|
|
.theme-light .call-tree-zoom {
|
|
background-image: url(magnifying-glass-light.png);
|
|
}
|
|
|
|
@media (min-resolution: 2dppx) {
|
|
.theme-dark .call-tree-zoom {
|
|
background-image: url(magnifying-glass@2x.png);
|
|
}
|
|
|
|
.theme-light .call-tree-zoom {
|
|
background-image: url(magnifying-glass-light@2x.png);
|
|
}
|
|
}
|
|
|
|
.call-tree-item:hover .call-tree-zoom {
|
|
transition: opacity 0.3s ease-in;
|
|
opacity: 1;
|
|
}
|
|
|
|
.call-tree-item:hover .call-tree-zoom:hover {
|
|
opacity: 0;
|
|
}
|
|
|
|
.call-tree-category {
|
|
transform: scale(0.75);
|
|
transform-origin: center right;
|
|
}
|
|
|
|
/**
|
|
* Details Waterfall Styles
|
|
*/
|
|
|
|
.waterfall-list-contents {
|
|
/* Hack: force hardware acceleration */
|
|
transform: translateZ(1px);
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.waterfall-header-contents {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.waterfall-background-ticks {
|
|
/* Background created on a <canvas> in js. */
|
|
/* @see browser/devtools/timeline/widgets/waterfall.js */
|
|
background-image: -moz-element(#waterfall-background);
|
|
background-repeat: repeat-y;
|
|
background-position: -1px center;
|
|
}
|
|
|
|
.waterfall-marker-container[is-spacer] {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.theme-dark .waterfall-marker-container:not([is-spacer]):nth-child(2n) {
|
|
background-color: rgba(255,255,255,0.03);
|
|
}
|
|
|
|
.theme-light .waterfall-marker-container:not([is-spacer]):nth-child(2n) {
|
|
background-color: rgba(128,128,128,0.03);
|
|
}
|
|
|
|
.theme-dark .waterfall-marker-container:hover {
|
|
background-color: rgba(255,255,255,0.1) !important;
|
|
}
|
|
|
|
.theme-light .waterfall-marker-container:hover {
|
|
background-color: rgba(128,128,128,0.1) !important;
|
|
}
|
|
|
|
.waterfall-marker-item {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.waterfall-sidebar {
|
|
-moz-border-end: 1px solid var(--theme-splitter-color);
|
|
}
|
|
|
|
.waterfall-marker-container:hover > .waterfall-sidebar {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.waterfall-header-name {
|
|
padding: 2px 4px;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.waterfall-header-tick {
|
|
width: 100px;
|
|
font-size: 9px;
|
|
transform-origin: left center;
|
|
color: var(--theme-body-color);
|
|
}
|
|
|
|
.waterfall-header-tick:not(:first-child) {
|
|
-moz-margin-start: -100px !important; /* Don't affect layout. */
|
|
}
|
|
|
|
.waterfall-marker-bullet {
|
|
width: 8px;
|
|
height: 8px;
|
|
-moz-margin-start: 8px;
|
|
-moz-margin-end: 6px;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.waterfall-marker-name {
|
|
font-size: 95%;
|
|
padding-bottom: 1px !important;
|
|
}
|
|
|
|
.waterfall-marker-bar {
|
|
height: 9px;
|
|
transform-origin: left center;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.waterfall-marker-container.selected > .waterfall-sidebar,
|
|
.waterfall-marker-container.selected > .waterfall-marker-item {
|
|
background-color: var(--theme-selection-background);
|
|
color: var(--theme-selection-color);
|
|
}
|
|
|
|
.waterfall-marker-location {
|
|
color: -moz-nativehyperlinktext;
|
|
}
|
|
|
|
.waterfall-marker-location:hover,
|
|
.waterfall-marker-location:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#waterfall-details {
|
|
-moz-padding-start: 8px;
|
|
-moz-padding-end: 8px;
|
|
padding-top: 2vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.marker-details-bullet {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
#performance-filter-menupopup > menuitem.highlight-pink:before,
|
|
.marker-details-bullet.highlight-pink,
|
|
.waterfall-marker-bar.highlight-pink,
|
|
.waterfall-marker-bullet.highlight-pink {
|
|
background-color: var(--theme-highlight-pink);
|
|
}
|
|
#performance-filter-menupopup > menuitem.highlight-bluegrey:before,
|
|
.marker-details-bullet.highlight-bluegrey,
|
|
.waterfall-marker-bar.highlight-bluegrey,
|
|
.waterfall-marker-bullet.highlight-bluegrey {
|
|
background-color: var(--theme-highlight-bluegrey);
|
|
}
|
|
#performance-filter-menupopup > menuitem.highlight-green:before,
|
|
.marker-details-bullet.highlight-green,
|
|
.waterfall-marker-bar.highlight-green,
|
|
.waterfall-marker-bullet.highlight-green {
|
|
background-color: var(--theme-highlight-green);
|
|
}
|
|
#performance-filter-menupopup > menuitem.highlight-lightorange:before,
|
|
.marker-details-bullet.highlight-lightorange,
|
|
.waterfall-marker-bar.highlight-lightorange,
|
|
.waterfall-marker-bullet.highlight-lightorange {
|
|
background-color: var(--theme-highlight-lightorange);
|
|
}
|
|
#performance-filter-menupopup > menuitem.highlight-red:before,
|
|
.marker-details-bullet.highlight-red,
|
|
.waterfall-marker-bar.highlight-red,
|
|
.waterfall-marker-bullet.highlight-red {
|
|
background-color: var(--theme-highlight-red);
|
|
}
|
|
|
|
|
|
#waterfall-details > * {
|
|
padding-top: 3px;
|
|
}
|
|
|
|
.marker-details-labelname {
|
|
-moz-padding-end: 4px;
|
|
}
|
|
|
|
.marker-details-type {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.marker-details-duration {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Recording items */
|
|
|
|
.recording-item {
|
|
padding: 4px;
|
|
}
|
|
|
|
.recording-item-title {
|
|
font-size: 110%;
|
|
}
|
|
|
|
.recording-item-footer {
|
|
padding-top: 4px;
|
|
font-size: 90%;
|
|
}
|
|
|
|
.recording-item-save {
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.recording-item-duration,
|
|
.recording-item-save {
|
|
color: var(--theme-body-color-alt);
|
|
}
|
|
|
|
#recordings-list .selected label {
|
|
/* Text inside a selected item should not be custom colored. */
|
|
color: inherit !important;
|
|
}
|
|
|
|
/**
|
|
* JIT View
|
|
*/
|
|
|
|
#jit-optimizations-view {
|
|
width: 350px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
min-width: 200px;
|
|
}
|
|
|
|
/* override default styles for tree widget */
|
|
#jit-optimizations-view .tree-widget-empty-text {
|
|
font-size: inherit;
|
|
padding: 0px;
|
|
margin: 8px;
|
|
}
|
|
|
|
#jit-optimizations-view:not(.empty) .tree-widget-empty-text {
|
|
display: none;
|
|
}
|
|
|
|
#jit-optimizations-toolbar {
|
|
height: 18px;
|
|
min-height: 0px; /* override .devtools-toolbar min-height */
|
|
}
|
|
|
|
.jit-optimizations-title {
|
|
margin: 0px 4px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#jit-optimizations-raw-view {
|
|
font-size: 90%;
|
|
}
|
|
|
|
/* override default .tree-widget-item line-height */
|
|
#jit-optimizations-raw-view .tree-widget-item {
|
|
line-height: 20px !important;
|
|
display: block;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#jit-optimizations-raw-view .tree-widget-item[level="1"] {
|
|
font-weight: 600;
|
|
}
|
|
|
|
#jit-optimizations-view .opt-outcome::before {
|
|
content: "→";
|
|
margin: 4px 0px;
|
|
color: var(--theme-body-color);
|
|
}
|
|
#jit-optimizations-view .theme-selected .opt-outcome::before {
|
|
color: var(--theme-selection-color);
|
|
}
|
|
|
|
#jit-optimizations-view .tree-widget-item:not(.theme-selected) .opt-outcome[outcome=success] {
|
|
color: var(--theme-highlight-green);
|
|
}
|
|
#jit-optimizations-view .tree-widget-item:not(.theme-selected) .opt-outcome[outcome=failure] {
|
|
color: var(--theme-highlight-red);
|
|
}
|
|
#jit-optimizations-view .tree-widget-container {
|
|
-moz-margin-end: 0px;
|
|
}
|
|
#jit-optimizations-view .tree-widget-container > li,
|
|
#jit-optimizations-view .tree-widget-children > li {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.opt-line::before {
|
|
content: ":";
|
|
color: var(--theme-highlight-orange);
|
|
}
|
|
.theme-selected .opt-line::before {
|
|
color: var(--theme-selection-color);
|
|
}
|
|
.opt-line.header-line::before {
|
|
color: var(--theme-body-color);
|
|
}
|
|
#jit-optimizations-view.empty .opt-line.header-line::before {
|
|
display: none;
|
|
}
|
|
|
|
.opt-url {
|
|
-moz-margin-start: 4px !important;
|
|
}
|
|
.opt-url:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.opt-url.debugger-link {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#jit-optimizations-view .opt-icon::before {
|
|
content: "";
|
|
background-image: url(chrome://browser/skin/devtools/webconsole.png);
|
|
background-repeat: no-repeat;
|
|
background-size: 48px 40px;
|
|
margin: 5px 6px 0 0;
|
|
width: 8px;
|
|
height: 8px;
|
|
max-height: 8px;
|
|
display: inline-block;
|
|
}
|
|
|
|
#jit-optimizations-view .opt-icon[severity=warning]::before {
|
|
background-position: -16px -16px;
|
|
}
|
|
|
|
@media (min-resolution: 2dppx) {
|
|
#jit-optimizations-view .opt-icon::before {
|
|
background-image: url(chrome://browser/skin/devtools/webconsole@2x.png);
|
|
}
|
|
}
|