|
Re: profiling monitor: execution statistics - bug? [message #49582 is a reply to message #49522] |
Mon, 09 January 2006 16:51 |
Eclipse User |
|
|
|
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 005C9ECB852570F1_=
Content-Type: text/plain; charset="US-ASCII"
> The time-difference between the first and last entries is less than 100
seconds,
> but Exection Statistics shows cumulative time of ~ 332 seconds.
The cumulative time of a target method is the amount of time that the
target method takes plus the amount of time all the methods that are
called within the target method take. To make this clearer, consider
methodA below, which calls up methodB and methodC:
methodA()
{
methodB();
methodC();
}
The cumulative time of methodA is the amount of time methodA takes plus
the amount of time methodB and methodC take. So my question to you is
whether you took this into account when you calculated your cumulative
time in the raw XML file. You have to also take into account the number
of times that the method has been invoked.
The base time of methodA is just the amount of time methodA took without
taking into account methodB and methodC. This is easier to calculate from
your raw XML file, but you'll also need to take into account the number of
times the method has been invoked. The base times are added together for
each invocation of the method.
> BTW, the tptp-produced XML is not valid against the documented DTD
(checked using Altova XML-spy).
I'm not surprised. Over the years we've been adding/modifying entries to
the trace files without updating the DTD or XML schema. Pretty bad, I
know. We don't verify the DTD/Schema with the trace files produced,
probably to make things a bit faster. You're welcome to open a bug for
this: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP
Be sure to specify the error messages generated by the XML parser.
Navid Mehregani
--=_alternative 005C9ECB852570F1_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2><tt>> The time-difference between the first and last
entries is less than 100 seconds,<br>
> but Exection Statistics shows cumulative time of ~ 332 seconds.</tt></font>
<br>
<br><font size=2 face="sans-serif">The cumulative time of a target method
is the amount of time that the target method takes plus the amount of time
all the methods that are called within the target method take. To
make this clearer, consider methodA below, which calls up methodB and methodC:</font>
<br>
<br><font size=2 face="sans-serif">methodA()</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> methodB();</font>
<br><font size=2 face="sans-serif"> methodC();</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">The cumulative time of methodA is the
amount of time methodA takes plus the amount of time methodB and methodC
take. So my question to you is whether you took this into account
when you calculated your cumulative time in the raw XML file. You
have to also take into account the number of times that the method has
been invoked.</font>
<br>
<br><font size=2 face="sans-serif">The base time of methodA is just the
amount of time methodA took without taking into account methodB and methodC.
This is easier to calculate from your raw XML file, but you'll also
need to take into account the number of times the method has been invoked.
The base times are added together for each invocation of the method.</font>
<br>
<br>
<br><font size=2><tt>> BTW, the tptp-produced XML is not valid against
the documented DTD (checked using Altova XML-spy).</tt></font>
<br>
<br><font size=2 face="sans-serif">I'm not surprised. Over the years
we've been adding/modifying entries to the trace files without updating
the DTD or XML schema. Pretty bad, I know. We don't verify
the DTD/Schema with the trace files produced, probably to make things a
bit faster. You're welcome to open a bug for this: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP
</font>
<br><font size=2 face="sans-serif">Be sure to specify the error messages
generated by the XML parser.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 005C9ECB852570F1_=--
|
|
|
|
Re: profiling monitor: execution statistics - bug? [message #49882 is a reply to message #49762] |
Tue, 10 January 2006 20:35 |
Eclipse User |
|
|
|
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 007118D6852570F2_=
Content-Type: text/plain; charset="US-ASCII"
>Then I reckon:
> func base cumul
> A 3 5
> B 1 1
> C 1 1
>Correct?
Correct, but have you taken into account the number of times that the
method has been invoked? The cumulative time of a method invoked multiple
times is the addition of all of its cumulative times for each invocation.
I've imported your trace file in my workbench and none of the methods seem
to have a cumulative time of ~332 seconds. The largest cumulative time is
98.34 seconds for handleMsg(). I'm using the TPTP-4.2.0-200512310100
driver. Can you be more specific as to which methods you're having this
problem with.
BTW, if you opened a bug for the DTD verification problem, make sure you
specify its component as Platform.Agents.JVMPI.
Navid Mehregani
--=_alternative 007118D6852570F2_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2><tt>>Then I reckon:<br>
> func base cumul<br>
> A 3 5<br>
> B 1 1<br>
> C 1 1<br>
>Correct?</tt></font>
<br>
<br>
<br><font size=2 face="sans-serif">Correct, but have you taken into account
the number of times that the method has been invoked? The cumulative
time of a method invoked multiple times is the addition of all of its cumulative
times for each invocation. I've imported your trace file in my workbench
and none of the methods seem to have a cumulative time of ~332 seconds.
The largest cumulative time is 98.34 seconds for handleMsg(). I'm
using the TPTP-4.2.0-200512310100 driver. Can you be more specific
as to which methods you're having this problem with.</font>
<br>
<br><font size=2 face="sans-serif">BTW, if you opened a bug for the DTD
verification problem, make sure you specify its component as Platform.Agents.JVMPI.<br>
</font>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 007118D6852570F2_=--
|
|
|
|
Re: profiling monitor: execution statistics - bug? [message #50112 is a reply to message #50023] |
Thu, 12 January 2006 17:20 |
Eclipse User |
|
|
|
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 005F3F83852570F4_=
Content-Type: text/plain; charset="US-ASCII"
I found the problem, but I'm not sure why you're looking at the cumulative
times of the packages. The Execution Statistics view contains three
buttons that allow you to view the execution times of all the packages,
classes, or methods. You want to look at the execution times of all the
methods. The cumulative times of the classes are the addition of all the
cumulative times for their methods and the cumulative time of the packages
is the addition of the cumulative times of the classes within that
package. I thought I'd clarify that.
Now to get back to the problem... I imported your file with the 'Show
execution statistics (compressed data)' option and the largest cumulative
time is ~98 seconds, which I believe is correct. Now when I import the
same file with the 'Show full data (execution flow graphical details)'
option, the largest cumulative time is ~332 seconds!! This is definitely
a bug. I've opened a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=123628 Feel free to add
your email address to the CC list.
Navid Mehregani
--=_alternative 005F3F83852570F4_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">I found the problem, but I'm not sure
why you're looking at the cumulative times of the packages. The Execution
Statistics view contains three buttons that allow you to view the execution
times of all the packages, classes, or methods. You want to look
at the execution times of all the methods. The cumulative times of
the classes are the addition of all the cumulative times for their methods
and the cumulative time of the packages is the addition of the cumulative
times of the classes within that package. I thought I'd clarify that.</font>
<br>
<br><font size=2 face="sans-serif">Now to get back to the problem... I
imported your file with the 'Show execution statistics (compressed data)'
option and the largest cumulative time is ~98 seconds, which I believe
is correct. Now when I import the same file with the 'Show full data
(execution flow graphical details)' option, the largest cumulative time
is ~332 seconds!! This is definitely a bug. I've opened a bug
for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=123628 Feel
free to add your email address to the CC list.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 005F3F83852570F4_=--
|
|
|
|
Re: profiling monitor: execution statistics - bug? [message #50662 is a reply to message #50634] |
Mon, 16 January 2006 15:07 |
Eclipse User |
|
|
|
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 00530FBD852570F8_=
Content-Type: text/plain; charset="US-ASCII"
> What about my other original question re: profile data from a non-Java
source?
Sorry, but I don't know what you're referring to exactly.
Navid Mehregani
--=_alternative 00530FBD852570F8_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2>> What about my other original question re: profile
data from a non-Java source?<br>
</font>
<br><font size=2 face="sans-serif">Sorry, but I don't know what you're
referring to exactly.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 00530FBD852570F8_=--
|
|
|
Powered by
FUDForum. Page generated in 0.04311 seconds