• 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 */
15
16export class SelectionParam {
17    cpus: Array<number> = [];
18    threadIds: Array<number> = [];
19    trackIds: Array<number> = [];
20    funTids: Array<number> = [];
21    heapIds: Array<number> = []
22    leftNs: number = 0;
23    rightNs: number = 0;
24    hasFps: boolean = false;
25}
26
27export class BoxJumpParam {
28    leftNs: number = 0;
29    rightNs: number = 0;
30    state: string = "";
31    processId: number = 0;
32    threadId: number = 0;
33}
34
35export class SelectionData {
36    name: string = ""
37    process: string = ""
38    pid: string = ""
39    thread: string = ""
40    tid: string = ""
41    wallDuration: number = 0
42    avgDuration: string = ""
43    occurrences: number = 0
44    state: string = ""
45    trackId: number = 0
46
47    delta: string = ""
48    rate: string = ""
49    avgWeight: string = ""
50    count: string = ""
51    first: string = ""
52    last: string = ""
53    min: string = ""
54    max: string = ""
55    stateJX: string = ""
56}
57
58export class Counter {
59    id: number = 0
60    trackId: number = 0
61    name: string = ""
62    value: number = 0
63    startTime: number = 0
64}
65
66export class Fps {
67    startNS: number = 0
68    timeStr: string = ""
69    fps: number = 0
70}
71