• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2024 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 class CpuAndIrqBean {
16    startTime: number = 0;
17    dur: number = 0;
18    endTime: number = 0;
19    cat: string = '';
20    cpu: number = 0;
21    occurrences: number = 1;
22    priority:number = 0;
23    pid?: number | string;
24    tid?: number | string;
25    isFirstObject?:number = 1;
26}
27
28export class finalResultBean {
29    wallDuration?:number | string;
30    dur?: number = 0;
31    cat?: string = '';
32    cpu?: number = 0;
33    occurrences?: number = 1;
34    pid?: number | string;
35    tid?: number | string;
36}
37
38export class byCpuGroupBean {
39    CPU: CpuAndIrqBean[] = [];
40}
41
42export class softirqAndIrq {
43    occurrences: number = 0;
44    wallDuration: number = 0;
45    avgDuration: number = 0;
46    //@ts-ignore
47    cpus: { [cpu: number]: number } = {}; // 初始化 cpus 属性为一个空对象
48    [cpuDurKey: string]: number;
49    //@ts-ignore
50    tid?: number|string;
51    //@ts-ignore
52    pid?: number|string;
53    //@ts-ignore
54    process?: string;
55    //@ts-ignore
56    thread?: string;
57}