• 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 TabPaneIoCompletionTimesHtml = `
16    <style>
17        :host{
18            display: flex;
19            flex-direction: column;
20            padding: 10px 10px 0 10px;
21        }
22        .io-completiontimes-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        .io-completion-progress{
32            bottom: 33px;
33            position: absolute;
34            height: 1px;
35            z-index: 99;
36            left: 0;
37            right: 0;
38        }
39        #io-completion-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="io-completion-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-io-completion-times" style="height: auto">
52                            <lit-table-column class="io-completion-column" width="200px" title="Start" data-index="startTsStr" key="startTsStr" align="flex-start" order></lit-table-column>
53                            <lit-table-column class="io-completion-column" width="260px" title="Total Latency" data-index="durStr" key="durStr" align="flex-start" order></lit-table-column>
54                            <lit-table-column class="io-completion-column" width="200px" title="Process" data-index="process" key="process" align="flex-start" order></lit-table-column>
55                            <lit-table-column class="io-completion-column" width="200px" title="Latency per 4KB" data-index="durPer4kStr" key="durPer4kStr" align="flex-start" order></lit-table-column>
56                            <lit-table-column class="io-completion-column" width="200px" title="Thread" data-index="thread" key="thread" align="flex-start" order></lit-table-column>
57                            <lit-table-column class="io-completion-column" width="200px" title="Operation" data-index="operation" key="operation" align="flex-start" order></lit-table-column>
58                            <lit-table-column class="io-completion-column" width="200px" title="Bytes" data-index="sizeStr" key="sizeStr" align="flex-start" order></lit-table-column>
59                            <lit-table-column class="io-completion-column" width="280px" title="Path" data-index="path" key="path" align="flex-start" ></lit-table-column>
60                            <lit-table-column class="io-completion-column" width="200px" title="Block number" data-index="blockNumber" key="blockNumber" align="flex-start" ></lit-table-column>
61                            <lit-table-column class="io-completion-column" width="240px" title="Tier" data-index="tier" key="tier" align="flex-start" order></lit-table-column>
62                            <lit-table-column class="io-completion-column" width="600px" title="Backtrace" data-index="backtrace" key="backtrace" align="flex-start" >
63                                <template>
64                                    <div>
65                                        <span>{{backtrace[0]}}</span>
66                                        <span v-if="backtrace.length > 1">⬅</span>
67                                        <span v-if="backtrace.length > 1"style="color: #565656"> {{backtrace[1]}}</span>
68                                    </div>
69                                </template>
70                            </lit-table-column>
71                        </lit-table>
72                    </div>
73                    <lit-slicer-track class="io-completion-slicer-tracker"></lit-slicer-track>
74                    <lit-table id="tbr-io-completion-times" no-head style="height: auto;border-left: 1px solid var(--dark-border1,#e2e2e2)" hideDownload>
75                        <lit-table-column class="io-completion-column" width="60px" title="" data-index="type" key="type"  align="flex-start" >
76                            <template>
77                                <div v-if=" type == -1 ">Thread:</div>
78                                <img src="img/library.png" size="20" v-if=" type == 1 ">
79                                <img src="img/function.png" size="20" v-if=" type == 0 ">
80                            </template>
81                        </lit-table-column>
82                        <lit-table-column class="io-completion-column" width="1fr" title="" data-index="symbol" key="symbol"  align="flex-start">
83                        </lit-table-column>
84                    </lit-table>
85                </lit-slicer>
86            </div>
87            <lit-progress-bar class="progress io-completion-progress"></lit-progress-bar>
88            <tab-pane-filter id="io-completion-filter" first></tab-pane-filter>
89            <div class="io-completiontimes-loading"></div>
90        </div>
91`;
92