M
mcek
Hi All!
I was profiling my app using TPTP in Eclipse and I found one thing I
don't understand. The following method takes almost the whole time of
the execution and what concerns me is that the Base Time is 96% of the
Cumulative Time.
from help:
Base Time:
For any invocation, the base time is the time taken to execute the
invocation, excluding the time spent in other methods that were called
during the invocation.
Cumulative Time:
For any invocation, the cumulative time is the time taken to execute
all methods called from an invocation. If an invocation has no
additional method calls, then the cumulative time will be equal to the
base time.
But when I look at the method:
public evacuationSimulator2005.Point3D getPoint3D( String name
)
{
String strX = getProperty( name + "X" );
String strY = getProperty( name + "Y" );
String strZ = getProperty( name + "Z" );
return( new evacuationSimulator2005.Point3D(
Double.parseDouble( strX ),
Double.parseDouble( strY ),
Double.parseDouble( strZ ) ) );
}
I cannot see what is it doing apart from calling other methods, so what
is happening all this time?
Cheers
Maciek
I was profiling my app using TPTP in Eclipse and I found one thing I
don't understand. The following method takes almost the whole time of
the execution and what concerns me is that the Base Time is 96% of the
Cumulative Time.
from help:
Base Time:
For any invocation, the base time is the time taken to execute the
invocation, excluding the time spent in other methods that were called
during the invocation.
Cumulative Time:
For any invocation, the cumulative time is the time taken to execute
all methods called from an invocation. If an invocation has no
additional method calls, then the cumulative time will be equal to the
base time.
But when I look at the method:
public evacuationSimulator2005.Point3D getPoint3D( String name
)
{
String strX = getProperty( name + "X" );
String strY = getProperty( name + "Y" );
String strZ = getProperty( name + "Z" );
return( new evacuationSimulator2005.Point3D(
Double.parseDouble( strX ),
Double.parseDouble( strY ),
Double.parseDouble( strZ ) ) );
}
I cannot see what is it doing apart from calling other methods, so what
is happening all this time?
Cheers
Maciek