• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 
16 package ohos.devtools.views.trace.bean;
17 
18 import ohos.devtools.views.trace.DField;
19 
20 /**
21  * Process memory directory
22  *
23  * @since 2021/04/22 12:25
24  */
25 public class ProcessMem {
26     @DField(name = "trackId")
27     private int trackId;
28 
29     @DField(name = "processName")
30     private String processName;
31 
32     @DField(name = "pid")
33     private int pid;
34 
35     @DField(name = "upid")
36     private int upid;
37 
38     @DField(name = "trackName")
39     private String trackName;
40 
41     /**
42      * Gets the value of trackId .
43      *
44      * @return the value of int
45      */
getTrackId()46     public int getTrackId() {
47         return trackId;
48     }
49 
50     /**
51      * Sets the trackId .
52      * <p>You can use getTrackId() to get the value of trackId</p>
53      *
54      * @param track track
55      */
setTrackId(final int track)56     public void setTrackId(final int track) {
57         this.trackId = track;
58     }
59 
60     /**
61      * Gets the value of processName .
62      *
63      * @return the value of java.lang.String
64      */
getProcessName()65     public String getProcessName() {
66         return processName;
67     }
68 
69     /**
70      * Sets the processName .
71      * <p>You can use getProcessName() to get the value of processName</p>
72      *
73      * @param name name
74      */
setProcessName(final String name)75     public void setProcessName(final String name) {
76         this.processName = name;
77     }
78 
79     /**
80      * Gets the value of pid .
81      *
82      * @return the value of int
83      */
getPid()84     public int getPid() {
85         return pid;
86     }
87 
88     /**
89      * Sets the pid .
90      * <p>You can use getPid() to get the value of pid</p>
91      *
92      * @param id id
93      */
setPid(final int id)94     public void setPid(final int id) {
95         this.pid = id;
96     }
97 
98     /**
99      * Gets the value of upid .
100      *
101      * @return the value of int
102      */
getUpid()103     public int getUpid() {
104         return upid;
105     }
106 
107     /**
108      * Sets the upid .
109      * <p>You can use getUpid() to get the value of upid</p>
110      *
111      * @param id id
112      */
setUpid(final int id)113     public void setUpid(final int id) {
114         this.upid = id;
115     }
116 
117     /**
118      * Gets the value of trackName .
119      *
120      * @return the value of java.lang.String
121      */
getTrackName()122     public String getTrackName() {
123         return trackName;
124     }
125 
126     /**
127      * Sets the trackName .
128      * <p>You can use getTrackName() to get the value of trackName</p>
129      *
130      * @param name name
131      */
setTrackName(final String name)132     public void setTrackName(final String name) {
133         this.trackName = name;
134     }
135 }
136