• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16export const TabPerfFuncAsmHtml = `
17<style>
18:host {
19    display: flex;
20    flex-direction: column;
21}
22.perf-table-box{
23    width: 100%;
24    border-left: solid 1px var(--dark-border1,#e0e0e0);
25    border-radius: 5px;
26    padding: 10px;
27}
28.title-box {
29    margin-bottom: 10px;
30    padding: 5px;
31}
32.title-item {
33    margin: 5px 0;
34    color: var(--dark-color1,#212121);
35}
36.title-label {
37    font-weight: bold;
38}
39.title-row {
40    display: flex;
41    justify-content: space-between;
42    align-items: center;
43    width: 100%;
44}
45#text-file-off {
46    flex-grow: 0;
47}
48#total-count {
49    flex-grow: 1;
50    text-align: right;
51}
52.loading {
53  position: absolute;
54  top: 50%;
55  left: 50%;
56  transform: translate(-50%, -50%);
57}
58.error-message {
59  color: red;
60  margin-top: 5px;
61  display: none;  /* 默认隐藏 */
62}
63</style>
64<div style="display: flex; flex-direction: row;" class="d-box">
65    <div class="perf-table-box" style="height:auto;overflow: auto;position: relative">
66        <div class="title-box">
67            <div class="title-row">
68                <div class="title-item" id="text-file-off"><span class="title-label">.text section:</span> </div>
69                <div class="title-item" id="total-count"><span class="title-label">Total Count:</span> </div>
70            </div>
71            <div class="title-item error-message" id="error-message"></div>
72        </div>
73        <lit-loading id="loading" class="loading" hidden></lit-loading>
74        <lit-table id="perf-function-asm-table" style="display: grid;min-height: 380px">
75            <lit-table-column width="0.2fr" title="Self Count" data-index="selfcount" key="selfcount" align="flex-start" order></lit-table-column>
76            <lit-table-column width="0.2fr" title="%" data-index="percent" key="percent" align="flex-start" order></lit-table-column>
77            <lit-table-column width="0.4fr" title="Virtual Address" data-index="addr" key="addr" align="flex-start"></lit-table-column>
78            <lit-table-column width="2fr" title="Source Line" data-index="sourceLine" key="sourceLine" align="flex-start" hidden></lit-table-column>
79            <lit-table-column width="2fr" title="Assembler Instruction" data-index="instruction" key="instruction" align="flex-start"></lit-table-column>
80        </lit-table>
81    </div>
82</div>
83`;
84