• 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 SystemCpuSummary {
17  startTime: number = -1;
18  startTimeStr: string = '';
19  duration: number = -1;
20  durationStr: string = '';
21  totalLoad: number = -1;
22  totalLoadStr: string = '';
23  userLoad: number = -1;
24  userLoadStr: string = '';
25  systemLoad: number = -1;
26  systemLoadStr: string = '';
27  threads: number = -1;
28  threadsStr: string = '';
29}
30
31export class SystemDiskIOSummary {
32  startTime: number = -1;
33  startTimeStr: string = '';
34  duration: number = -1;
35  durationStr: string = '';
36  dataRead: number = -1;
37  dataReadStr: string = '';
38  dataReadSec: number = -1;
39  dataReadSecStr: string = '';
40  dataWrite: number = -1;
41  dataWriteStr: string = '';
42  dataWriteSec: number = -1;
43  dataWriteSecStr: string = '';
44  readsIn: number = -1;
45  readsInStr: string = '';
46  readsInSec: number = -1;
47  readsInSecStr: string = '';
48  writeOut: number = -1;
49  writeOutStr: string = '';
50  writeOutSec: number = -1;
51  writeOutSecStr: string = '';
52}
53
54export class ProcessHistory {
55  processId: number = -1;
56  alive: string = ''; // 0 alive and 1 dead
57  firstSeen: string = '';
58  firstSeenNumber: number = -1;
59  lastSeen: string = '';
60  lastSeenNumber: number = -1;
61  processName: string = '';
62  responsibleProcess: string = '';
63  userName: string = '';
64  cpuTime: string = '';
65  cpuTimeNumber: number = -1;
66  pss: number = -1;
67}
68
69export class LiveProcess {
70  processId: number = -1;
71  processName: string = '';
72  responsibleProcess: string = '';
73  userName: string = '';
74  cpu: string = '';
75  threads: number = -1;
76  memory: string = '';
77  memoryNumber: number = -1;
78  diskWrite: number = -1;
79  diskReads: number = -1;
80  cpuTime: string = '';
81  cpuTimeNumber: number = -1;
82}
83
84export class SystemNetworkSummary {
85  startTime: number = -1;
86  startTimeStr: string = '';
87  duration: number = -1;
88  durationStr: string = '';
89  dataReceived: number = -1;
90  dataReceivedStr: string = '';
91  dataReceivedSec: number = -1;
92  dataReceivedSecStr: string = '';
93  dataSend: number = -1;
94  dataSendStr: string = '';
95  dataSendSec: number = -1;
96  dataSendSecStr: string = '';
97  packetsIn: number = -1;
98  packetsInStr: string = '';
99  packetsInSec: number = -1;
100  packetsInSecStr: string = '';
101  packetsOut: number = -1;
102  packetsOutStr: string = '';
103  packetsOutSec: number = -1;
104  packetsOutSecStr: string = '';
105}
106
107export class SystemMemorySummary {
108  startTimeStr: string = '0';
109  durationStr: string = '0';
110  durationNumber: number = -1;
111  memoryTotal: string = '0';
112  memFree: string = '0';
113  buffers: string = '0';
114  cached: string = '0';
115  shmem: string = '0';
116  slab: string = '0';
117  swapTotal: string = '0';
118  swapFree: string = '0';
119  mapped: string = '0';
120  vmallocUsed: string = '0';
121  pageTables: string = '0';
122  kernelStack: string = '0';
123  active: string = '0';
124  inactive: string = '0';
125  unevictable: string = '0';
126  vmallocTotal: string = '0';
127  sUnreclaim: string = '0';
128  kReclaimable: string = '0';
129  cmaTotal: string = '0';
130  cmaFree: string = '0';
131  zram: string = '0';
132}
133