|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.PopulationCounter
public class PopulationCounter
A convenience class designed to simplify various forms of population analysis by looking at the objects contained in an object iterator. By varying the filters applied to the iterator we can produce reports of the resulting populations and build up complex forms of analysis.
Constructor Summary | |
---|---|
PopulationCounter(IAnalyzerBase ctx)
Build an analyzer to count the class populations. |
Method Summary | |
---|---|
void |
analyzeAndReport(java.lang.String title,
ObjectIterator itr,
IAnalysisReport report)
Analyze the populations of objects from the iterator and then format the result into the given report. |
void |
buildTables(ObjectIterator it)
Analyze the object populations in the given iterator. |
int |
getTotalArrayBytes()
Return the number of array bytes found in the population. |
int |
getTotalArrayClasses()
Return the number of array classes found in the population. |
int |
getTotalArrayObjects()
Return the number of array objects found in the population. |
int |
getTotalObjectBytes()
Return the number of object bytes found in the population. |
int |
getTotalObjectClasses()
Return the number of object classes found in the population. |
int |
getTotalObjects()
Return the number of objects found in the population. |
void |
printReport(java.lang.String title,
IAnalysisReport report)
Build a report detailing the object populations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PopulationCounter(IAnalyzerBase ctx)
ctx
- the context to handle errorsMethod Detail |
---|
public int getTotalObjectClasses()
public int getTotalObjects()
public int getTotalObjectBytes()
public int getTotalArrayClasses()
public int getTotalArrayObjects()
public int getTotalArrayBytes()
public void buildTables(ObjectIterator it)
it
- the iterator to be analyzedpublic void printReport(java.lang.String title, IAnalysisReport report)
title
- a title for the analysisreport
- the report to be given the resultpublic void analyzeAndReport(java.lang.String title, ObjectIterator itr, IAnalysisReport report)
itr
- the iterator of objectstitle
- a title for the analysisreport
- the report
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |