int maxRows = 5; int maxLines = 5; String type = "java.io.ObjectOutputStream"; printInstanceStats(tracker, type, maxRows, maxLines);
String classname = "java.util.HashMap"; int maxInstances = 3; int maxToString = 100; int maxStackLines = 12; printInstanceStats( tracker, classname, maxInstances, maxToString, maxStackLines);
  public static void printStats() {    System.out.println("-----------------------------------------------");    MemoryStats tracker = MemoryStatsImpl.getInstance();    // print class summary    printClassStats(tracker);    // print largest ObjectInputStreams    int maxRows = 5;    int maxLines = 5;    String type = "java.io.ObjectOutputStream";    printInstanceStats(tracker, type, maxRows, maxLines);    System.out.println("-----------------------------------------------");  }