• 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
39
40export class SmapsTreeObj {
41    constructor(id: string, pid: string, type: string) {
42        this.id = id
43        this.pid = pid
44        this.type = type;
45    }
46    id: string = ""
47    pid: string = ""
48    rsspro: number = 0
49    rssproStr: string = ""
50    type: string = ""
51    reg: number = 0
52    regStr: string = ""
53    path: string = ""
54    rss: number = 0
55    rssStr: string = ""
56    dirty: number = 0
57    dirtyStr: string = ""
58    swapper: number = 0
59    swapperStr: string = ""
60    pss: number = 0
61    pssStr: string = ""
62    size: number = 0
63    sizeStr: string = ""
64    respro: number = 0
65    resproStr: string = ""
66    children: Array<SmapsTreeObj> = [];
67}
68
69