comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL profiler
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL profiler [message #72560] Sat, 25 September 2010 01:24 Go to next message
Mrunmayee is currently offline  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 #72604 is a reply to message #72560] Thu, 23 September 2010 05:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: IDL profiler [message #72709 is a reply to message #72560] Sat, 25 September 2010 06:36 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: WShow in IDL 8
Next Topic: Re: IDL 8.0 Contour function artifact

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:57 PDT 2025

Total time taken to generate the page: 0.00417 seconds