Class CallAnalyse.CallStatistics

java.lang.Object
org.nuiton.util.CallAnalyse.CallStatistics
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
CallAnalyse.CallStatisticsSummary
Enclosing class:
CallAnalyse

public static class CallAnalyse.CallStatistics
extends java.lang.Object
implements java.lang.Cloneable
CallStatistics is the class which handles values on excecution time and memory usage. Each CallStatistics object is for one particular name.
Author:
bpoussin
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected long calls  
    protected long maxMemory  
    protected long maxTime  
    protected org.apache.commons.collections.primitives.ArrayLongList memories  
    protected long minMemory  
    protected long minTime  
    protected java.lang.String name  
    protected java.lang.Runtime runtime  
    protected long sumMemory  
    protected long sumTime  
    protected org.apache.commons.collections.primitives.ArrayLongList times
    pile contenant le temps de appel, util pour les appels recursifs
  • Constructor Summary

    Constructors 
    Constructor Description
    CallStatistics​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    void enter()  
    void exit()  
    long getAvgMemory()  
    long getAvgTime()  
    long getCalls()  
    long getMaxMemory()  
    long getMaxTime()  
    protected long getMemory()  
    long getMinMemory()  
    long getMinTime()  
    java.lang.String getName()  
    long getSumMemory()  
    long getSumTime()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      protected java.lang.String name
    • calls

      protected long calls
    • minTime

      protected long minTime
    • maxTime

      protected long maxTime
    • sumTime

      protected long sumTime
    • minMemory

      protected long minMemory
    • maxMemory

      protected long maxMemory
    • sumMemory

      protected long sumMemory
    • times

      protected org.apache.commons.collections.primitives.ArrayLongList times
      pile contenant le temps de appel, util pour les appels recursifs
    • memories

      protected org.apache.commons.collections.primitives.ArrayLongList memories
    • runtime

      protected java.lang.Runtime runtime
  • Constructor Details

  • Method Details