Re: IDL profiler [message #72560] |
Sat, 25 September 2010 01:24  |
Mrunmayee
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
On Sep 23, 5:25 pm, David Fanning <n...@dfanning.com> wrote:
> Mrunmayee writes:
>> Can someone explain me the columns in the output of
>> IDL> profiler, /report
>
>> I am not sure I understand the columns "Only" and "Time". Obviously,
>> 'Only' lists the time spent *only* in that particular routine. But
>> then adding all those up wouldn't give the total time spent in running
>> the code. Yet, "Time" lists time which seems closer to actual time
>> spent in running the code.
>
>> I guess, I am more anxious about times in 'Only' not adding up to
>> total time spent on the code.
>
> Here is an article that might shed some light on
> these questions for you:
>
> http://www.dfanning.com/code_tips/whyslow.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
David, I did read the article before posting here. My doubts is,
should the sum of all the times in the column 'Only' add up to total
time spent running the code? If not, (as I find it), why not?
|
|
|
|
Re: IDL profiler [message #72709 is a reply to message #72560] |
Sat, 25 September 2010 06:36  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mrunmayee writes:
> David, I did read the article before posting here. My doubts is,
> should the sum of all the times in the column 'Only' add up to total
> time spent running the code? If not, (as I find it), why not?
I presume the rest of the time is spent in system
routines that aren't listed in the profile, but
I really don't know. Nor can I get myself to
care too much about it, if you know what I mean. :-)
Why are you treating this information in such
an absolute way? If you are looking for places
where your code is slow, Profile will show you
that. Why care what the absolute time is?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|