01: package tijmp;
02:
03: /** A class to hold on to a heap walk entry.
04: */
05: public class HeapWalkEntry {
06: private Class<?> cls;
07: private long count;
08: private long countChange;
09: private long size;
10: private long sizeChange;
11:
12: public HeapWalkEntry(Class<?> cls, long count, long countChange,
13: long size, long sizeChange) {
14: this .cls = cls;
15: this .count = count;
16: this .countChange = countChange;
17: this .size = size;
18: this .sizeChange = sizeChange;
19: }
20:
21: /** Get the class that this entry has information about. */
22: public Class<?> getEntryClass() {
23: return cls;
24: }
25:
26: /** Get the total number of instances of the class. */
27: public long getInstanceCount() {
28: return count;
29: }
30:
31: public long getInstanceChange() {
32: return countChange;
33: }
34:
35: /** Get the number of bytes the instances use. */
36: public long getTotalSize() {
37: return size;
38: }
39:
40: public long getSizeChange() {
41: return sizeChange;
42: }
43: }
|