• 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 TabPaneFileSystemDescTimeSliceHtml = `
16    <style>
17        :host{
18            display: flex;
19            flex-direction: column;
20            padding: 10px 10px 1px 10px;
21        }
22        .fs-slice-loading{
23            bottom: 0;
24            position: absolute;
25            left: 0;
26            right: 0;
27            width:100%;
28            background:transparent;
29            z-index: 999999;
30        }
31        .fs-slice-progress{
32            bottom: 33px;
33            position: absolute;
34            height: 1px;
35            z-index: 99;
36            left: 0;
37            right: 0;
38        }
39        #fs-slice-filter {
40            border: solid rgb(216,216,216) 1px;
41            float: left;
42            position: fixed;
43            bottom: 0;
44            width: 100%;
45        }
46        </style>
47        <div class="fs-slice-content" style="display: flex;flex-direction: column">
48            <div style="display: flex;flex-direction: row">
49                <lit-slicer style="width:100%">
50                    <div style="width: 65%">
51                        <lit-table id="tbl-filesystem-desc-time-slice" style="height: auto">
52                            <lit-table-column class="fs-slice-column" width="200px" title="Open Time" data-index="startTsStr" key="startTsStr" align="flex-start" order></lit-table-column>
53                            <lit-table-column class="fs-slice-column" width="200px" title="Open Duration" data-index="durStr" key="surStr" align="flex-start" order></lit-table-column>
54                            <lit-table-column class="fs-slice-column" width="200px" title="Process" data-index="process" key="process" align="flex-start" order></lit-table-column>
55                            <lit-table-column class="fs-slice-column" width="160px" title="File Descriptor" data-index="fd" key="fd" align="flex-start" order></lit-table-column>
56                            <lit-table-column class="fs-slice-column" width="300px" title="Path" data-index="path" key="path" align="flex-start" ></lit-table-column>
57                            <lit-table-column class="fs-slice-column" width="600px" title="Backtrace" data-index="backtrace" key="backtrace" align="flex-start" >
58                                <template>
59                                    <div>
60                                        <span class="fs-desc-time-backtrace-data-span">{{backtrace[0]}}</span>
61                                        <span v-if="backtrace.length > 1">⬅</span>
62                                        <span v-if="backtrace.length > 1"style="color: #565656"> {{backtrace[1]}}</span>
63                                    </div>
64                                </template>
65                            </lit-table-column>
66                        </lit-table>
67                    </div>
68                    <lit-slicer-track class="fs-desc-time-slice"></lit-slicer-track>
69                    <lit-table id="tbr-filesystem-desc-time-slice" no-head style="height: auto;border-left: 1px solid var(--dark-border1,#e2e2e2)" hideDownload>
70                        <lit-table-column class="fs-slice-column" width="60px" title="" data-index="type" key="type"  align="flex-start" >
71                            <template>
72                                <div v-if=" type == -1 ">Thread:</div>
73                                <img src="img/library.png" size="20" v-if=" type == 1 ">
74                                <img src="img/function.png" size="20" v-if=" type == 0 ">
75                            </template>
76                        </lit-table-column>
77                        <lit-table-column class="fs-slice-column" width="1fr" title="" data-index="symbol" key="symbol"  align="flex-start">
78                        </lit-table-column>
79                    </lit-table>
80                </lit-slicer>
81            </div>
82            <lit-progress-bar class="progress fs-slice-progress"></lit-progress-bar>
83            <tab-pane-filter id="fs-slice-filter"></tab-pane-filter>
84            <div class="loading fs-slice-loading"></div>
85        </div>
86`;
87