• 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 TabPaneFileSystemDescHistoryHtml = `
16    <style>
17        :host{
18            display: flex;
19            flex-direction: column;
20            padding: 10px 10px 0 10px;
21        }
22        .filesystem-desc-history-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        .filesystem-desc-history-progress{
32            bottom: 33px;
33            position: absolute;
34            height: 1px;
35            z-index: 99;
36            left: 0;
37            right: 0;
38        }
39        tab-pane-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-history-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-file-system-desc-history" style="height: auto">
52                            <lit-table-column class="fs-history-column" width="200px" title="Start" data-index="startTsStr" key="startTsStr" align="flex-start" order></lit-table-column>
53                            <lit-table-column class="fs-history-column"width="160px" title="Duration" data-index="durStr" key="durStr" align="flex-start" order></lit-table-column>
54                            <lit-table-column class="fs-history-column"width="200px" title="Process" data-index="process" key="process" align="flex-start" order></lit-table-column>
55                            <lit-table-column class="fs-history-column"width="120px" title="Type" data-index="typeStr" key="typeStr" align="flex-start" order></lit-table-column>
56                            <lit-table-column class="fs-history-column"width="160px" title="File Descriptor" data-index="fd" key="fd" align="flex-start" order></lit-table-column>
57                            <lit-table-column class="fs-history-column"width="300px" title="Path" data-index="path" key="path" align="flex-start" ></lit-table-column>
58                            <lit-table-column class="fs-history-column"width="600px" title="Backtrace" data-index="backtrace" key="backtrace" align="flex-start" >
59                                <template>
60                                    <div>
61                                        <span class="fs-desc-backtrace-data-span">{{backtrace[0]}}</span>
62                                        <span v-if="backtrace.length > 1">⬅</span>
63                                        <span v-if="backtrace.length > 1" style="color: #565656"> {{backtrace[1]}}</span>
64                                    </div>
65                                </template>
66                            </lit-table-column>
67                        </lit-table>
68                    </div>
69                    <lit-slicer-track class="fs-desc-history-tracker"></lit-slicer-track>
70                    <lit-table id="tbr-file-system-desc-history" no-head style="height: auto;border-left: 1px solid var(--dark-border1,#e2e2e2)" hideDownload>
71                        <lit-table-column class="fs-history-column"width="60px" title="" data-index="type" key="type"  align="flex-start" >
72                            <template>
73                                <div v-if=" type == -1 ">Thread:</div>
74                                <img src="img/library.png" size="20" v-if=" type == 1 ">
75                                <img src="img/function.png" size="20" v-if=" type == 0 ">
76                            </template>
77                        </lit-table-column>
78                        <lit-table-column class="fs-history-column"width="1fr" title="" data-index="symbol" key="symbol"  align="flex-start">
79                        </lit-table-column>
80                    </lit-table>
81                </lit-slicer>
82            </div>
83            <lit-progress-bar class="filesystem-desc-history-progress"></lit-progress-bar>
84            <tab-pane-filter id="filesystem-desc-history-filter" first second></tab-pane-filter>
85            <div class="filesystem-desc-history-loading"></div>
86        </div>
87`;
88