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 TabCpuDetailsFrequencyHtml = `
16        <style>
17        #loading{
18            height: 1px;
19            width: 100%
20        }
21        :host {
22            width: 100%;
23            height: 100%;
24            background-color: var(--dark-background,#FFFFFF);
25        }
26        .d-box{
27            display: flex;
28            margin: 20px;
29            height: calc(100vh - 165px);
30        }
31        .fre-chart-box{
32            width: 40%;
33        }
34        #fre-tb-cpu-usage{
35            height: 100%;
36        }
37        .table-box{
38            width: 60%;
39            max-height: calc(100vh - 165px);
40            padding: 10px;
41            border: solid 1px var(--dark-border1,#e0e0e0);
42            border-radius: 5px;
43        }
44        #chart-pie{
45            height: 360px;
46        }
47        </style>
48        <lit-progress-bar id="loading"></lit-progress-bar>
49        <div class="d-box">
50            <div class="fre-chart-box">
51                <div style="text-align: center">Statistics By Duration</div>
52                <lit-chart-pie  id="chart-pie"></lit-chart-pie>
53            </div>
54            <div class="table-box">
55                <table-no-data id="table-no-data">
56                    <lit-table id="fre-tb-cpu-usage" hideDownload>
57                        <lit-table-column width="100px" title="No" data-index="index" key="index" align="flex-start" order></lit-table-column>
58                        <lit-table-column width="150px" title="frequency" data-index="value" key="value" align="flex-start" order></lit-table-column>
59                        <lit-table-column width="100px" title="min" data-index="min" key="min" align="flex-start" order></lit-table-column>
60                        <lit-table-column width="100px" title="max" data-index="max" key="max" align="flex-start" order></lit-table-column>
61                        <lit-table-column width="100px" title="average" data-index="avg" key="avg" align="flex-start" order></lit-table-column>
62                        <lit-table-column width="100px" title="duration" data-index="sumTimeStr" key="sumTimeStr" align="flex-start" order></lit-table-column>
63                        <lit-table-column width="100px" title="%" data-index="ratio" key="ratio" align="flex-start" order></lit-table-column>
64                    </lit-table>
65                </table-no-data>
66            </div>
67        </div>
68        <tab-cpu-details-threads id="tab-cpu-details-threads"></tab-cpu-details-threads>
69        `;
70