sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/BaseInfo.java
equal
deleted
inserted
replaced
50 |
50 |
51 /** Total memory size at this time */ |
51 /** Total memory size at this time */ |
52 private int totalMemory; |
52 private int totalMemory; |
53 private int size; |
53 private int size; |
54 |
54 |
|
55 /** Thread Id. **/ |
|
56 private int threadId; |
|
57 |
55 /** file position to defer callstack reading */ |
58 /** file position to defer callstack reading */ |
56 private long filePos; |
59 private long filePos; |
57 |
60 |
58 /** |
61 /** |
59 * Constructor |
62 * Constructor |
|
63 * |
60 * @param memoryAddress The address for this memory operation |
64 * @param memoryAddress The address for this memory operation |
61 */ |
65 */ |
62 public BaseInfo(String memoryAddress) { |
66 public BaseInfo(String memoryAddress) { |
63 this.memoryAddress = Long.parseLong(memoryAddress, 16); |
67 this.memoryAddress = Long.parseLong(memoryAddress, 16); |
64 } |
68 } |
126 public void setProcessID(String newProcessID) { |
130 public void setProcessID(String newProcessID) { |
127 int iValue = Integer.parseInt(newProcessID, 16); |
131 int iValue = Integer.parseInt(newProcessID, 16); |
128 this.processID = iValue; |
132 this.processID = iValue; |
129 } |
133 } |
130 |
134 |
131 /** |
135 // /** |
132 * Sets time for the allocation |
136 // * Sets time for the allocation |
133 * |
137 // * |
134 * @param newTime |
138 // * @param newTime |
135 * Allocation time |
139 // * Allocation time |
136 */ |
140 // */ |
137 public void setTime(String newTime) { |
141 // public void setTime(String newTime) { |
138 long lValue = Long.parseLong(newTime, 16); |
142 // long lValue = Long.parseLong(newTime, 16); |
139 this.time = lValue; |
143 // this.time = lValue; |
140 } |
144 // } |
141 |
145 |
142 /** |
146 /** |
143 * Sets the timestamp of event occurrence |
147 * Sets the time stamp of event occurrence |
|
148 * |
144 * @param newTime |
149 * @param newTime |
145 */ |
150 */ |
146 public void setTime(long newTime) |
151 public void setTime(long newTime) |
147 { |
152 { |
148 this.time = newTime; |
153 this.time = newTime; |
226 * @return size in bytes |
231 * @return size in bytes |
227 */ |
232 */ |
228 public int getSizeInt() { |
233 public int getSizeInt() { |
229 return size; |
234 return size; |
230 } |
235 } |
|
236 |
|
237 /** |
|
238 * Sets thread id. |
|
239 * |
|
240 * @param threadId thread id |
|
241 */ |
|
242 public void setThreadId(String threadId){ |
|
243 this.threadId = Integer.parseInt(threadId, 16); |
|
244 } |
|
245 |
|
246 /** |
|
247 * Gets thread id. |
|
248 * |
|
249 * @return thread id |
|
250 */ |
|
251 public int getThreadId(){ |
|
252 return threadId; |
|
253 } |
231 |
254 |
232 /** |
255 /** |
233 * Getter for file position pointing to first record in |
256 * Getter for file position pointing to first record in |
234 * .dat file where callstack for this BaseInfo starts. |
257 * .dat file where callstack for this BaseInfo starts. |
235 * @return the file position for the start of callstack information, |
258 * @return the file position for the start of callstack information, |
278 addComma = true; |
301 addComma = true; |
279 sb.append(String.format("addr=0x%08X dll=%s", callstack.getMemoryAddress(), callstack.getDllLoad() == null ? "null" : callstack.getDllLoad().getName())); |
302 sb.append(String.format("addr=0x%08X dll=%s", callstack.getMemoryAddress(), callstack.getDllLoad() == null ? "null" : callstack.getDllLoad().getName())); |
280 } |
303 } |
281 return sb.toString(); |
304 return sb.toString(); |
282 } |
305 } |
283 |
|
284 |
|
285 } |
306 } |