Search code examples
javaprofilingeclipse-tptp

Help Needed in Understanding TPTP Profiling Results


I am new to Profiling . i decided to start with Eclipse TPTP as its looks simple and easily configurable

I started with this basic APplication

public class As {

    public static void main(String args[]) {
        Two t = new Two();

        t.two();

    }
}


=====================

public class Two

{

    public void two() {
        System.out.println("Two");
    }

}

==============

After running the Profiler on As.java using Profile As JavaApplication . The screen shot appeared in this way :

Please see the screen shot here

http://imageshack.us/f/11/shareb.jpg/

Please let me know what is meant by Base Time , Average Base Time and Cumulative Time .


Solution

  • Base Time: The amount of time (in seconds) the method has taken to execute. Not including the execution time of any other methods called from this method.

    Average base time: The average base time required to execute this method once.

    Cumulative base time: The amount of time (in seconds) this method took to execute. Including the execution time of any other methods called from this method.

    Calls: The number of times this method was invoked.

    You may want to have a look at the following Tutorial, where this information is located: An introduction to profiling Java applications