util
Class StackStatistics

java.lang.Object
  extended by util.Statistics
      extended by util.StackStatistics

public class StackStatistics
extends Statistics

Statistics from stack samples. Computes hot methods from stack samples.


Constructor Summary
StackStatistics(Map<Thread,List<StackTraceElement[]>> threadStacks)
          Creates stack statistics from a list of stack traces.
 
Method Summary
 void dumpFull(PrintStream out)
          Prints the full results for the statistics.
 void dumpSummary(PrintStream out)
          Prints a summary of the statistics.
 void merge(Object obj)
          Merge two of the same type of statistics together.
 
Methods inherited from class util.Statistics
printFullHeader, printSummaryHeader, summarizeFloats, summarizeFloats, summarizeFloats, summarizeInts, summarizeInts, summarizeInts, summarizeLongs, summarizeLongs, summarizeLongs, summarizeLongs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackStatistics

public StackStatistics(Map<Thread,List<StackTraceElement[]>> threadStacks)
Creates stack statistics from a list of stack traces.

Parameters:
threadStacks - lists of stack traces for each thread
Method Detail

dumpFull

public void dumpFull(PrintStream out)
Description copied from class: Statistics
Prints the full results for the statistics.

Specified by:
dumpFull in class Statistics
Parameters:
out - output stream

dumpSummary

public void dumpSummary(PrintStream out)
Description copied from class: Statistics
Prints a summary of the statistics. The output should be short and, in most cases, at most one line long.

Specified by:
dumpSummary in class Statistics
Parameters:
out - output stream

merge

public void merge(Object obj)
Description copied from class: Statistics
Merge two of the same type of statistics together. Used to aggregate statistics together.

Specified by:
merge in class Statistics
Parameters:
obj - another statistics object of the same type to be merged with