• 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  * TabThreadStatesBean
22  *
23  * @since 2021/5/13 13:06
24  */
25 public class TabThreadStatesBean {
26     /**
27      * process name
28      */
29     @DField(name = "process")
30     private String process;
31 
32     /**
33      * process id
34      */
35     @DField(name = "pid")
36     private Integer pid;
37 
38     /**
39      * thread name
40      */
41     @DField(name = "thread")
42     private String thread;
43 
44     /**
45      * thread id
46      */
47     @DField(name = "tid")
48     private Integer tid;
49 
50     /**
51      * thread state
52      */
53     @DField(name = "state")
54     private String state;
55 
56     /**
57      * total wall duration
58      */
59     @DField(name = "wallDuration")
60     private Long wallDuration;
61 
62     /**
63      * avg wall duration
64      */
65     @DField(name = "avgDuration")
66     private Double avgDuration;
67 
68     /**
69      * count
70      */
71     @DField(name = "occurrences")
72     private Integer occurrences;
73 
74     /**
75      * Gets the value of process .
76      *
77      * @return the value of process .
78      */
getProcess()79     public String getProcess() {
80         return process;
81     }
82 
83     /**
84      * Sets the process .
85      * <p>You can use getProcess() to get the value of process.</p>
86      *
87      * @param param .
88      */
setProcess(final String param)89     public void setProcess(final String param) {
90         this.process = param;
91     }
92 
93     /**
94      * Gets the value of pid .
95      *
96      * @return the value of pid .
97      */
getPid()98     public Integer getPid() {
99         return pid;
100     }
101 
102     /**
103      * Sets the pid .
104      * <p>You can use getPid() to get the value of pid.</p>
105      *
106      * @param param .
107      */
setPid(final Integer param)108     public void setPid(final Integer param) {
109         this.pid = param;
110     }
111 
112     /**
113      * Gets the value of thread .
114      *
115      * @return the value of thread .
116      */
getThread()117     public String getThread() {
118         return thread;
119     }
120 
121     /**
122      * Sets the thread .
123      * <p>You can use getThread() to get the value of thread.</p>
124      *
125      * @param param .
126      */
setThread(final String param)127     public void setThread(final String param) {
128         this.thread = param;
129     }
130 
131     /**
132      * Gets the value of tid .
133      *
134      * @return the value of tid .
135      */
getTid()136     public Integer getTid() {
137         return tid;
138     }
139 
140     /**
141      * Sets the tid .
142      * <p>You can use getTid() to get the value of tid.</p>
143      *
144      * @param param .
145      */
setTid(final Integer param)146     public void setTid(final Integer param) {
147         this.tid = param;
148     }
149 
150     /**
151      * Gets the value of state .
152      *
153      * @return the value of state .
154      */
getState()155     public String getState() {
156         return state;
157     }
158 
159     /**
160      * Sets the state .
161      * <p>You can use getState() to get the value of state.</p>
162      *
163      * @param param .
164      */
setState(final String param)165     public void setState(final String param) {
166         this.state = param;
167     }
168 
169     /**
170      * Gets the value of allDuration .
171      *
172      * @return the value of allDuration .
173      */
getWallDuration()174     public Long getWallDuration() {
175         return wallDuration;
176     }
177 
178     /**
179      * Sets the allDuration .
180      * <p>You can use getAllDuration() to get the value of allDuration.</p>
181      *
182      * @param param .
183      */
setWallDuration(final long param)184     public void setWallDuration(final long param) {
185         this.wallDuration = param;
186     }
187 
188     /**
189      * Gets the value of avgDuration .
190      *
191      * @return the value of avgDuration .
192      */
getAvgDuration()193     public Double getAvgDuration() {
194         return avgDuration;
195     }
196 
197     /**
198      * Sets the avgDuration .
199      * <p>You can use getAvgDuration() to get the value of avgDuration.</p>
200      *
201      * @param param .
202      */
setAvgDuration(final double param)203     public void setAvgDuration(final double param) {
204         this.avgDuration = param;
205     }
206 
207     /**
208      * Gets the value of occurrences .
209      *
210      * @return the value of occurrences .
211      */
getOccurrences()212     public Integer getOccurrences() {
213         return occurrences;
214     }
215 
216     /**
217      * Sets the occurrences .
218      * <p>You can use getOccurrences() to get the value of occurrences.</p>
219      *
220      * @param param .
221      */
setOccurrences(final int param)222     public void setOccurrences(final int param) {
223         this.occurrences = param;
224     }
225 }
226