1fb726d48Sopenharmony_ci/*
2fb726d48Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3fb726d48Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4fb726d48Sopenharmony_ci * you may not use this file except in compliance with the License.
5fb726d48Sopenharmony_ci * You may obtain a copy of the License at
6fb726d48Sopenharmony_ci *
7fb726d48Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8fb726d48Sopenharmony_ci *
9fb726d48Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10fb726d48Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11fb726d48Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12fb726d48Sopenharmony_ci * See the License for the specific language governing permissions and
13fb726d48Sopenharmony_ci * limitations under the License.
14fb726d48Sopenharmony_ci */
15fb726d48Sopenharmony_ciexport const Top20FrequencyThreadHtml = `
16fb726d48Sopenharmony_ci        <style>
17fb726d48Sopenharmony_ci        :host {
18fb726d48Sopenharmony_ci            width: 100%;
19fb726d48Sopenharmony_ci            height: 100%;
20fb726d48Sopenharmony_ci            background-color: var(--dark-background5,#F6F6F6);
21fb726d48Sopenharmony_ci        }
22fb726d48Sopenharmony_ci        .tb_thread_count{
23fb726d48Sopenharmony_ci            width: calc(100% - 100px);
24fb726d48Sopenharmony_ci            border-radius: 5px;
25fb726d48Sopenharmony_ci            border: solid 1px var(--dark-border1,#e0e0e0);
26fb726d48Sopenharmony_ci            margin: 15px;
27fb726d48Sopenharmony_ci            padding: 5px 15px
28fb726d48Sopenharmony_ci        }
29fb726d48Sopenharmony_ci        .pie-chart{
30fb726d48Sopenharmony_ci            display: flex;
31fb726d48Sopenharmony_ci            box-sizing: border-box;
32fb726d48Sopenharmony_ci            width: 80%;
33fb726d48Sopenharmony_ci            height: 500px;
34fb726d48Sopenharmony_ci        }
35fb726d48Sopenharmony_ci        .root{
36fb726d48Sopenharmony_ci            width: 100%;
37fb726d48Sopenharmony_ci            height: 100%;
38fb726d48Sopenharmony_ci            display: flex;
39fb726d48Sopenharmony_ci            flex-direction: row;
40fb726d48Sopenharmony_ci            overflow-x: hidden;
41fb726d48Sopenharmony_ci            overflow-y: auto;
42fb726d48Sopenharmony_ci            box-sizing: border-box;
43fb726d48Sopenharmony_ci        }
44fb726d48Sopenharmony_ci        </style>
45fb726d48Sopenharmony_ci        <lit-progress-bar id="loading" style="height: 1px;width: 100%" loading></lit-progress-bar>
46fb726d48Sopenharmony_ci        <div style="padding: 15px">
47fb726d48Sopenharmony_ci                    Thread Search
48fb726d48Sopenharmony_ci                    <lit-select default-value="1" id="thread_select" placement="bottom" tabselect></lit-select>
49fb726d48Sopenharmony_ci        </div>
50fb726d48Sopenharmony_ci        <table-no-data id="nodata" contentHeight="500px">
51fb726d48Sopenharmony_ci        <div class="root">
52fb726d48Sopenharmony_ci            <div style="width: 40%;padding: 15px;display: flex;flex-direction: column;align-items: center">
53fb726d48Sopenharmony_ci                <div>Statistics By Duration</div>
54fb726d48Sopenharmony_ci                <lit-chart-pie id="pie" class="pie-chart"></lit-chart-pie>
55fb726d48Sopenharmony_ci            </div>
56fb726d48Sopenharmony_ci            <div style="flex: 1;display: flex;flex-direction: column;align-items: center;padding-top: 15px;height: 60vh">
57fb726d48Sopenharmony_ci                <div id="current_thread" style="font-weight: bold;height: 40px"></div>
58fb726d48Sopenharmony_ci                <div id="tb_vessel" class="tb_thread_count">
59fb726d48Sopenharmony_ci                    <lit-table id="tb-process-thread-count" hideDownload style="height: calc(60vh - 60px)">
60fb726d48Sopenharmony_ci                        <lit-table-column width="1fr" title="NO" data-index="no" key="no" align="flex-start" order></lit-table-column>
61fb726d48Sopenharmony_ci                        <lit-table-column width="1fr" title="cpu" data-index="cpu" key="cpu" align="flex-start" order></lit-table-column>
62fb726d48Sopenharmony_ci                        <lit-table-column width="1fr" title="frequency" data-index="freq" key="freq" align="flex-start" order></lit-table-column>
63fb726d48Sopenharmony_ci                        <lit-table-column width="1fr" title="duration" data-index="timeStr" key="timeStr" align="flex-start" order></lit-table-column>
64fb726d48Sopenharmony_ci                        <lit-table-column width="1fr" title="%" data-index="ratio" key="ratio" align="flex-start" order></lit-table-column>        
65fb726d48Sopenharmony_ci                    </lit-table>
66fb726d48Sopenharmony_ci                </div>
67fb726d48Sopenharmony_ci            </div>
68fb726d48Sopenharmony_ci        </div>
69fb726d48Sopenharmony_ci        </table-no-data>
70fb726d48Sopenharmony_ci        `;
71