01: package tijmp;
02:
03: import java.util.List;
04: import java.util.Map;
05: import tijmp.HeapWalkEntry;
06:
07: /** An ui handler.
08: */
09: public interface UIHandler {
10:
11: /** Init the ui. */
12: void init(ProfilerHandler ph);
13:
14: /** Show the heap walk result to the user. */
15: void showHeapWalkResult(List<HeapWalkEntry> ls);
16:
17: /** GC has just finished. */
18: void gcFinished();
19:
20: /** Report a set of object instances. */
21: void instances(Class<?> clz, Object[] objects, long[] sizes,
22: int[] lengths);
23:
24: /** Report a set of Strings. */
25: void strings(Object[] objects);
26:
27: /** Report a set of child objects. */
28: void childObjects(Object[] childs);
29:
30: /** Show a set of owner objects. */
31: void owners(Map<Long, OwnerInfoHeader> owners, long[] startObjects);
32:
33: /** Show some simple status. */
34: void showStatus(String status);
35: }
|