• 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 Smaps {
17  tsNS: number = -1;
18  start_addr: string = '';
19  end_addr: string = '';
20  permission: string = '';
21  path: string = '';
22  size: number = 0;
23  rss: number = 0;
24  pss: number = 0;
25  reside: number = 0;
26  dirty: number = 0;
27  swapper: number = 0;
28
29  address: string = '';
30  type: string = '';
31  dirtyStr: string = '';
32  swapperStr: string = '';
33  rssStr: string = '';
34  pssStr: string = '';
35  sizeStr: string = '';
36  resideStr: string = '';
37}
38
39export class SmapsTreeObj {
40  constructor(id: string, pid: string, type: string) {
41    this.id = id;
42    this.pid = pid;
43    this.type = type;
44  }
45  id: string = '';
46  pid: string = '';
47  rsspro: number = 0;
48  rssproStr: string = '';
49  type: string = '';
50  reg: number = 0;
51  regStr: string = '';
52  path: string = '';
53  rss: number = 0;
54  rssStr: string = '';
55  dirty: number = 0;
56  dirtyStr: string = '';
57  swapper: number = 0;
58  swapperStr: string = '';
59  pss: number = 0;
60  pssStr: string = '';
61  size: number = 0;
62  sizeStr: string = '';
63  respro: number = 0;
64  resproStr: string = '';
65  children: Array<SmapsTreeObj> = [];
66}
67