• 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 StateProcessThread {
17    id: string = ""
18    pid: string = ""
19    title: string | null | undefined = ""
20    children: Array<StateProcessThread> = []
21    process: string = ""
22    processId: number = -1
23    thread: string = ""
24    threadId: number = -1
25    state: string = ""
26    wallDuration: number = 0
27    avgDuration: string = ""
28    count: number = 0
29    minDuration: number = 0
30    maxDuration: number = 0
31    stdDuration: string = ""
32}
33
34export class SPTChild {
35    process: string = ""
36    processId: number = 0
37    processName: string = ""
38    thread: string = ""
39    threadId: number = 0
40    threadName: string = ""
41    state: string = ""
42    startNs: number = 0
43    startTime: string = ""
44    duration: number = 0
45    cpu: number | undefined = undefined
46    core: string = ""
47    priority: number = 0
48    prior: string = ""
49    note: string = "-"
50}
51
52export class SPT {
53    process: string = ""
54    processId: number = 0
55    thread: string = ""
56    threadId: number = 0
57    state: string = ""
58    dur: number = 0
59    start_ts: number = 0
60    end_ts: number = 0
61    cpu: number = 0;
62    priority: string = "-"
63    note: string = "-"
64}
65
66export class ThreadState{
67    itid:number = 0
68    state:string = ""
69    dur:number = 0
70    ts:number = 0
71    end_ts:number = 0
72    start_ts:number = 0
73    cpu:number = 0
74}
75
76export class ThreadProcess{
77    id:number = 0
78    threadId :number = 0
79    thread :string = ""
80    processId : number = 0
81    process : string = ""
82}
83
84export class SptSlice{
85    itid :number = 0
86    ts : number = 0
87    priority : number = 0
88}