• 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 */
15export const TabPaneCallTreeHtml = `
16        <style>
17        .call-tree-filter {
18            border: solid rgb(216,216,216) 1px;
19            float: left;
20            position: fixed;
21            bottom: 0;
22            width: 100%;
23        }
24        .call-tree-progress{
25            position: absolute;
26            height: 1px;
27            left: 0;
28            right: 0;
29            bottom: 33px;
30        }
31        :host{
32            display: flex;
33            padding: 10px 10px 0 10px;
34            flex-direction: column;
35        }
36        selector{
37            display: none;
38        }
39        .call-tree-loading{
40            background:transparent;
41            position: absolute;
42            left: 0;
43            right: 0;
44            bottom: 0;
45            width:100%;
46            z-index: 999999;
47        }
48         .show{
49            display: flex;
50            flex: 1;
51        }
52    </style>
53    <div class="call-tree-content" style="display: flex;flex-direction: column">
54    <lit-headline class="titleBox"></lit-headline>
55    <selector id='show_table' class="show">
56        <lit-slicer style="width:100%">
57        <div id="left_table" style="width: 65%">
58            <lit-table id="tb-calltree" style="height: auto" tree>
59                <lit-table-column class="call-tree-column" width="70%" title="Call Stack" data-index="symbol" key="symbol"  align="flex-start" retract></lit-table-column>
60                <lit-table-column class="call-tree-column" width="1fr" title="Local" data-index="self" key="self"  align="flex-start"  order></lit-table-column>
61                <lit-table-column class="call-tree-column" width="1fr" title="Weight" data-index="weight" key="weight"  align="flex-start"  order></lit-table-column>
62                <lit-table-column class="call-tree-column" width="1fr" title="%" data-index="weightPercent" key="weightPercent"  align="flex-start"  order></lit-table-column>
63            </lit-table>
64        </div>
65        <lit-slicer-track ></lit-slicer-track>
66        <lit-table id="tb-list" no-head style="height: auto;border-left: 1px solid var(--dark-border1,#e2e2e2)" hideDownload>
67            <span slot="head">Heaviest Stack Trace</span>
68            <lit-table-column class="call-tree-column" width="30px" title="" data-index="type" key="type"  align="flex-start" >
69                <template>
70                    <img src="img/library.png" size="20" v-if=" type == 1 ">
71                    <img src="img/function.png" size="20" v-if=" type == 0 ">
72                </template>
73            </lit-table-column>
74            <lit-table-column class="call-tree-column" width="60px" title="" data-index="count" key="count"  align="flex-start"></lit-table-column>
75            <lit-table-column class="call-tree-column" width="1fr" title="" data-index="symbol" key="symbol"  align="flex-start"></lit-table-column>
76        </lit-table>
77        </div>
78        </lit-slicer>
79     </selector>
80     <tab-pane-filter id="filter" class="call-tree-filter" input inputLeftText icon tree fileSystem></tab-pane-filter>
81     <lit-progress-bar class="progress call-tree-progress"></lit-progress-bar>
82    <selector id='show_chart' class="call-tree-selector" >
83        <tab-framechart id='framechart' style='width: 100%;height: auto'> </tab-framechart>
84    </selector>
85    <div class="loading call-tree-loading"></div>
86    </div>`;
87