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 StateGroup {
16  SleepingCount: number = 0;
17  RunningCount: number = 0;
18  RunnableCount: number = 0;
19  DCount: number = 0;
20  RunningDur: number = 0;
21  RunnableDur: number = 0;
22  SleepingDur: number = 0;
23  DDur: number = 0;
24  title?: string = '';
25  pid: number = 0;
26  tid: number = 0;
27  ts: number = 0;
28  dur?: number = 0;
29  type: string = '';
30  state?: string = '';
31  children?: Array<StateGroup>;
32  isSelected?: boolean = false;
33  totalCount?: number = 0;
34  cycleDur?: number | string = 0;
35  cycle: number = 0;
36  id?: number;
37  cpu?: number = 0;
38  startTs?: number = 0;
39  chartDur?: number = 0;
40}
41
42export class FuncNameCycle {
43  funcName: string = '';
44  cycleStartTime: number = 0;
45  cycleDur: number = 0;
46  startTime: number = 0;
47  endTime: number = 0;
48  id: number = 0;
49  tid: number = 0;
50  pid: number = 0;
51}
52