UNPKG

debug-server-next

Version:

Dev server for hippy-core.

1 lines 18.6 kB
import*as RootModule from'../../core/root/root.js';RootModule.Runtime.cachedResources.set("panels/profiler/heapProfiler.css","/*\n * Copyright (C) 2009 Google Inc. All rights reserved.\n * Copyright (C) 2010 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following disclaimer\n * in the documentation and/or other materials provided with the\n * distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived from\n * this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n.heap-snapshot-view {\n overflow: hidden;\n}\n\n.heap-snapshot-view .data-grid {\n border: none;\n flex: auto;\n}\n\n.heap-snapshot-view .data-grid tr:empty {\n height: 16px;\n visibility: hidden;\n}\n\n.heap-snapshot-view .data-grid span.percent-column {\n width: 35px !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.heap-snapshot-view .object-value-object,\n.object-value-node {\n display: inline;\n position: static;\n}\n\n.heap-snapshot-view .object-value-string {\n white-space: nowrap;\n}\n\n.heap-snapshot-view td.object-column .objects-count {\n margin-left: 10px;\n font-size: 11px;\n color: var(--color-text-secondary);\n}\n\n.heap-snapshot-view tr:not(.selected) .object-value-id {\n color: var(--color-text-secondary);\n}\n\n.profile-view .heap-tracking-overview {\n flex: 0 0 80px;\n height: 80px;\n}\n\n.heap-snapshot-view .retaining-paths-view {\n overflow: hidden;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer {\n background-image: var(--image-file-toolbarResizerVertical);\n background-color: var(--color-background-elevation-1);\n border-bottom: 1px solid var(--color-details-hairline);\n background-repeat: no-repeat;\n background-position: right center, center;\n flex: 0 0 21px;\n}\n\n.heap-snapshot-view td.object-column > div > span {\n margin-right: 6px;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer .title > span {\n display: inline-block;\n padding-top: 3px;\n vertical-align: middle;\n margin-left: 4px;\n margin-right: 8px;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer * {\n pointer-events: none;\n}\n\n.heap-snapshot-view tr:not(.selected) td.object-column span.highlight {\n background-color: inherit;\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link {\n float: right;\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link:empty {\n animation: fadeInOut 2s infinite;\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link:empty::before {\n content: \"\\b7\\b7\";\n font-weight: bold;\n}\n\n@keyframes fadeInOut {\n 0% {\n transform: rotate(0);\n }\n\n 50% {\n transform: rotate(0.5turn);\n }\n\n 100% {\n transform: rotate(1turn);\n }\n}\n\n.heap-snapshot-view tr:not(.selected) td.object-column span.heap-object-tag {\n color: var(--color-text-secondary);\n}\n\n.heap-snapshot-view td.object-column span.grayed {\n color: var(--color-text-secondary);\n}\n\n.cycled-ancessor-node {\n opacity: 60%;\n}\n\n#heap-recording-view .profile-view {\n top: 80px;\n}\n\n.heap-overview-container {\n overflow: hidden;\n position: absolute;\n top: 0;\n width: 100%;\n height: 80px;\n}\n\n#heap-recording-overview-grid .resources-dividers-label-bar {\n pointer-events: auto;\n}\n\n.heap-recording-overview-canvas {\n position: absolute;\n top: 20px;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.heap-snapshot-statistics-view {\n overflow: auto;\n}\n\n.heap-snapshot-stats-pie-chart {\n margin: 12px 30px;\n flex-shrink: 0;\n}\n\n.heap-allocation-stack .stack-frame {\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--color-details-hairline);\n padding: 2px;\n}\n\n.heap-allocation-stack .stack-frame:focus {\n background-color: var(--legacy-selection-bg-color);\n color: var(--legacy-selection-fg-color);\n}\n\n.heap-allocation-stack .stack-frame:focus:hover {\n background-color: var(--legacy-accent-color-hover);\n}\n\n.heap-allocation-stack .stack-frame:hover:not(:focus) {\n background-color: var(--color-background-hover-overlay);\n}\n\n.heap-allocation-stack .stack-frame .devtools-link {\n color: var(--color-text-secondary);\n}\n\n.heap-allocation-stack .stack-frame:focus .devtools-link {\n color: var(--legacy-selection-fg-color);\n}\n\n.no-heap-allocation-stack {\n padding: 5px;\n}\n\n@media (forced-colors: active) {\n .cycled-ancessor-node {\n opacity: 100%;\n }\n\n .heap-snapshot-view td.object-column .objects-count,\n .heap-snapshot-view tr:not(.selected) td.object-column span.heap-object-tag,\n .heap-snapshot-view tr:not(.selected) .object-value-id {\n color: ButtonText;\n }\n}\n\n/*# sourceURL=panels/profiler/heapProfiler.css */");RootModule.Runtime.cachedResources.set("panels/profiler/liveHeapProfile.css","/*\n * Copyright 2019 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.data-grid {\n border: none;\n}\n\n.data-grid td .size-units {\n margin-left: 4px;\n font-size: 75%;\n}\n\n.data-grid tr:not(.selected) td .size-units {\n color: var(--color-text-secondary);\n}\n\n.toolbar {\n border-bottom: 1px solid var(--color-details-hairline);\n}\n\n/*# sourceURL=panels/profiler/liveHeapProfile.css */");RootModule.Runtime.cachedResources.set("panels/profiler/profileLauncherView.css","/*\n * Copyright 2018 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.profile-launcher-view {\n overflow: auto;\n}\n\n.profile-launcher-view-content {\n margin: 10px 16px;\n flex: auto 1 0;\n}\n\n.profile-launcher-view-content h1 {\n font-size: 15px;\n font-weight: normal;\n margin: 6px 0 10px 0;\n}\n\n.profile-launcher-view-content [is=dt-radio] {\n font-size: 13px;\n}\n\n.profile-launcher-view-content p {\n color: var(--color-text-secondary);\n margin-top: 1px;\n margin-left: 22px;\n}\n\n.profile-launcher-view-content p [is=dt-checkbox] {\n display: flex;\n}\n\n.profile-launcher-view-content button.running {\n color: var(--color-accent-red);\n}\n\n.profile-launcher-view-content > div {\n flex: auto 0 0;\n}\n\n.profile-launcher-view-content > .profile-isolate-selector-block {\n flex: auto 1 0;\n overflow: hidden;\n}\n\n.profile-isolate-selector-block button {\n min-width: 110px;\n}\n\n.profile-launcher-target-list {\n margin-bottom: 6px;\n border: 1px solid var(--color-details-hairline);\n flex: 150px 1 0;\n}\n\n.profile-launcher-target-list-container {\n overflow: auto;\n}\n\n.profile-memory-usage-item {\n min-width: 100%;\n width: max-content;\n padding: 4px;\n line-height: 16px;\n border-left: 3px solid transparent;\n}\n\n.profile-isolate-selector-block > .profile-memory-usage-item {\n margin-left: 1px;\n margin-bottom: 4px;\n font-weight: bolder;\n}\n\n.profile-launcher-target-list .profile-memory-usage-item:hover:not(.selected) {\n background-color: var(--item-hover-color);\n}\n\n.profile-memory-usage-item.selected {\n background-color: var(--legacy-item-selection-inactive-bg-color);\n}\n\n.javascript-vm-instances-list {\n width: max-content;\n min-width: 100%;\n}\n\n.javascript-vm-instances-list:focus .profile-memory-usage-item.selected {\n border-color: var(--legacy-selection-bg-color);\n background-color: var(--legacy-item-selection-bg-color);\n}\n\n.profile-memory-usage-item > div {\n flex-shrink: 0;\n margin-right: 12px;\n}\n\n.profile-memory-usage-item-size {\n width: 60px;\n text-align: right;\n}\n\n.profile-memory-usage-item-trend {\n min-width: 5em;\n color: var(--color-accent-green);\n}\n\n.profile-memory-usage-item-trend.increasing {\n color: var(--color-accent-red);\n}\n\n.profile-launcher-buttons {\n flex-wrap: wrap;\n}\n\n.profile-launcher-buttons button {\n min-width: 120px;\n height: 28px;\n margin: 4px 16px 4px 0;\n}\n\n@media (forced-colors: active) {\n .profile-memory-usage-item {\n forced-color-adjust: none;\n border-left-color: transparent;\n }\n\n .profile-memory-usage-item-trend,\n .profile-memory-usage-item-trend.increasing,\n .profile-launcher-view-content button.running,\n body.inactive .profile-launcher-view-content button.running:not(.toolbar-item) {\n color: ButtonText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item.selected .profile-memory-usage-item-trend,\n .javascript-vm-instances-list .profile-memory-usage-item.selected .profile-memory-usage-item-trend.increasing {\n color: ButtonFace;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) .profile-memory-usage-item-trend,\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) .profile-memory-usage-item-trend.increasing {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item.selected {\n background-color: ButtonText;\n border-color: Highlight;\n color: ButtonFace;\n }\n\n .javascript-vm-instances-list:focus .profile-memory-usage-item.selected,\n .javascript-vm-instances-list:focus-visible .profile-memory-usage-item.selected {\n background-color: Highlight;\n border-color: ButtonText;\n color: HighlightText;\n }\n}\n\n/*# sourceURL=panels/profiler/profileLauncherView.css */");RootModule.Runtime.cachedResources.set("panels/profiler/profilesPanel.css","/*\n * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.\n * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of Apple Computer, Inc. (\"Apple\") nor the names of\n * its contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n/* Profiler Style */\n\n#profile-views {\n flex: auto;\n position: relative;\n}\n\n.profile-view .data-grid table.data {\n background: var(--color-background);\n}\n\n.profile-view .data-grid tr:not(.selected) .highlight {\n background-color: var(--color-selection-highlight);\n}\n\n.profile-view .data-grid tr:hover td:not(.bottom-filler-td) {\n background-color: var(--color-background-hover-overlay);\n}\n\n.profile-view .data-grid td.numeric-column {\n text-align: right;\n}\n\n.profile-view .data-grid div.profile-multiple-values {\n float: right;\n}\n\n.profile-view .data-grid span.percent-column {\n color: var(--color-text-secondary);\n width: 50px;\n display: inline-block;\n}\n\n.profile-view .data-grid tr.selected span {\n color: inherit;\n}\n\n.profiles-toolbar {\n background-color: var(--color-background-elevation-1);\n border-bottom: 1px solid var(--color-details-hairline);\n flex-shrink: 0;\n}\n\n.profiles-tree-sidebar {\n flex: auto;\n overflow: hidden;\n}\n\n.profiles-sidebar-tree-box {\n overflow-y: auto;\n}\n\n.profile-view {\n display: flex;\n overflow: hidden;\n}\n\n.profile-view .data-grid {\n border: none;\n flex: auto;\n}\n\n.profile-view .data-grid th.self-column,\n.profile-view .data-grid th.total-column {\n text-align: center;\n}\n\n.profile-node-file {\n float: right;\n color: var(--color-text-secondary);\n}\n\n.profile-warn-marker {\n vertical-align: -1px;\n margin-right: 2px;\n}\n\n.cpu-profile-flame-chart-overview-container {\n overflow: hidden;\n position: absolute;\n top: 0;\n width: 100%;\n height: 80px;\n}\n\n#cpu-profile-flame-chart-overview-container {\n border-bottom: 1px solid var(--color-details-hairline);\n overflow: hidden;\n}\n\n.cpu-profile-flame-chart-overview-canvas {\n position: absolute;\n top: 20px;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n#cpu-profile-flame-chart-overview-grid .resources-dividers-label-bar {\n pointer-events: auto;\n}\n\n.cpu-profile-flame-chart-overview-pane {\n flex: 0 0 80px !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.profile-text-view {\n padding: 10px;\n overflow: auto;\n margin: 0;\n user-select: text;\n cursor: text;\n}\n\n@media (forced-colors: active) {\n .profile-view .data-grid tr:hover td:not(.bottom-filler-td) {\n background: Highlight;\n }\n\n .profile-view .data-grid table.data {\n background: transparent;\n }\n}\n\n/*# sourceURL=panels/profiler/profilesPanel.css */");RootModule.Runtime.cachedResources.set("panels/profiler/profilesSidebarTree.css","/*\n * Copyright 2016 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n/* Tree outline overrides */\n\n:host {\n padding: 0;\n}\n\nol.tree-outline {\n overflow: auto;\n flex: auto;\n padding: 0;\n margin: 0;\n}\n\n.tree-outline li {\n height: 36px;\n padding-right: 5px;\n margin-top: 1px;\n line-height: 34px;\n border-top: 1px solid transparent;\n}\n\n.tree-outline li:not(.parent)::before {\n display: none;\n}\n\n:host-context(.some-expandable) .tree-outline li:not(.parent) {\n margin-left: 10px;\n}\n\n.tree-outline li.profiles-tree-section {\n height: 18px;\n padding: 0 10px;\n white-space: nowrap;\n margin-top: 1px;\n color: var(--color-text-secondary);\n text-shadow: var(--color-background-opacity-80) 0 1px 0;\n line-height: 18px;\n}\n\n.tree-outline li.profiles-tree-section::before {\n display: none;\n}\n\n.tree-outline ol {\n overflow: hidden;\n}\n/* Generic items styling */\n\n.title-container > .save-link {\n text-decoration: underline;\n margin-left: auto;\n display: none;\n}\n\nli.selected .title-container > .save-link {\n display: block;\n cursor: pointer;\n}\n\nli .icon {\n width: 32px;\n height: 32px;\n margin-top: 1px;\n margin-right: 3px;\n flex: none;\n}\n\n.tree-outline > .icon {\n margin-left: 16px;\n}\n\nli.wait .spinner::before {\n margin: 4px;\n}\n\nli.wait.small .spinner::before {\n --dimension: 14px;\n --clip-size: 9px;\n --override-spinner-size: 2px;\n\n margin: 1px;\n}\n\nli.wait.selected .spinner::before {\n --override-spinner-color: #fff;\n}\n\n@keyframes spinner-animation {\n from { transform: rotate(0); }\n to { transform: rotate(360deg); }\n}\n\nli.small {\n height: 20px;\n}\n\nli .titles {\n display: flex;\n flex-direction: column;\n top: 5px;\n line-height: 12px;\n padding-bottom: 1px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n flex: auto;\n}\n\nli .titles > .title-container {\n display: flex;\n}\n\nli.small .titles {\n top: 2px;\n line-height: normal;\n}\n\nli:not(.small) .title::after {\n content: \"\\A\";\n white-space: pre;\n}\n\nli .subtitle {\n font-size: 80%;\n}\n\nli.small .subtitle {\n display: none;\n}\n/* Launcher */\n\n.profile-launcher-view-tree-item {\n margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.profile-launcher-view-tree-item > .icon {\n width: 8px !important; /* stylelint-disable-line declaration-no-important */\n visibility: hidden;\n}\n/* Heap profiles and CPU profiles */\n\n.heap-snapshot-sidebar-tree-item .icon {\n content: var(--image-file-profileIcon);\n}\n\n.profile-sidebar-tree-item .icon {\n content: var(--image-file-profileIcon);\n}\n\n.profile-group-sidebar-tree-item .icon {\n content: var(--image-file-profileGroupIcon);\n}\n\nli.small .icon {\n width: 16px;\n height: 16px;\n}\n\nli.wait .icon {\n content: none;\n}\n\n.heap-snapshot-sidebar-tree-item.small .icon {\n content: var(--image-file-profileSmallIcon);\n}\n\n.profile-sidebar-tree-item.small .icon {\n content: var(--image-file-profileSmallIcon);\n}\n\n@media (forced-colors: active) {\n .tree-outline li,\n .tree-outline li.profiles-tree-section,\n .tree-outline li:hover .tree-element-title {\n forced-color-adjust: none;\n color: ButtonText;\n text-shadow: unset;\n }\n\n .tree-outline:not(.hide-selection-when-blurred) li.selected {\n color: HighlightText;\n }\n}\n\n/*# sourceURL=panels/profiler/profilesSidebarTree.css */");