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 = "" 20 children: Array<StateProcessThread> = [] 21 22 process: string = "" 23 processId: number = 0 24 thread: string = "" 25 threadId: number = 0 26 state: string = "" 27 wallDuration: number = 0 28 avgDuration: string = "" 29 count: number = 0 30 minDuration: number = 0 31 maxDuration: number = 0 32 stdDuration: string = "" 33} 34 35export class SPTChild { 36 process: string = "" 37 processId: number = 0 38 processName: string = "" 39 thread: string = "" 40 threadId: number = 0 41 threadName: string = "" 42 state: string = "" 43 startNs: number = 0 44 startTime: string = "" 45 duration: number = 0 46 cpu: number | undefined = undefined 47 core: string = "" 48 priority: number = 0 49 prior: string = "" 50 note: string = "-" 51} 52