Is there a way to get the java object creation rate programmatically? Or, the total size of object created so far, not considering the garbage collection.
Such as
int size = GC.getSizeTotalObjectCreated();
// do some object creation
int size2 = GC.getSizeTotalObjectCreated();
System.out.println("TotalObjectCreated" + (size2 - size));