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

Home » Public Forums » archive » 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
profiler [message #13251] Thu, 29 October 1998 00:00 Go to next message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
Anyone else noticed that:

profiler,'module'

doesn't work but

profiler, 'MODULE'

does?

I thought IDL was supposed to be case insensitive!


--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
Re: Profiler [message #27333 is a reply to message #13251] Thu, 18 October 2001 22:50 Go to previous messageGo to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Its been a while, nobody answered. Have you tried it, Ken?
I only profiled perfectly debugged code (yeah, right) in order to optimize
it. I never felt the need to profile line by line, it was obvious from the
profile which part of the code was casuing the drag.

Cheers,
Pavel

"K. Bowman" <k-bowman@null.tamu.edu> wrote in message
news:171020011420157099%k-bowman@null.tamu.edu...
> Can anyone tell me if the IDL profiler will profile on a line-by-line
> basis (rather than just at the routine level)?
>
> If I select one user routine and all the built-in routines to profile,
> will it profile only the calls to the built-in routines within the
> selected user routine, or throughout the whole code?
>
> Thanks, Ken Bowman
Re: Profiler [message #27386 is a reply to message #13251] Mon, 22 October 2001 11:37 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <3BD099C3.6557B059@noaa.gov>, Pavel A. Romashkin
<pavel.romashkin@noaa.gov> wrote:

> Ken,
>
> I just tried the simpliest thing that came to my mind. I set a
> breakpoint to the first line of a program, then set profiler to profile
> all. When you do one-stepping through the code, profile log updates for
> every line. I just had to make its window active (click on it) for it to
> update. You could use Step over if you didn't want to profile user procedures.
>
> Hope this helps. Surely beats chopping code into dozens of separate
> routines :-)

While not entirely click-free, that sounds like it will do the trick.

Ken
Re: Profiler [message #27408 is a reply to message #13251] Sat, 20 October 2001 20:01 Go to previous message
Paul Woodford is currently offline  Paul Woodford
Messages: 43
Registered: June 2000
Member
I recently used trace to figure out where I was slowing down. Set it to
run with no delay, and then watch to see which line it pauses on.

Paul
Re: Profiler [message #27418 is a reply to message #13251] Fri, 19 October 2001 14:23 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Ken,

I just tried the simpliest thing that came to my mind. I set a
breakpoint to the first line of a program, then set profiler to profile
all. When you do one-stepping through the code, profile log updates for
every line. I just had to make its window active (click on it) for it to
update. You could use Step over if you didn't want to profile user procedures.

Hope this helps. Surely beats chopping code into dozens of separate
routines :-)

Cheers,
Pavel

"K. Bowman" wrote:
>
> In article <9qoeu3$hm8$1@mwrns.noaa.gov>, Pavel Romashkin
> <pavel.romashkin@noaa.gov> wrote:
>
>> Its been a while, nobody answered. Have you tried it, Ken?
>> I only profiled perfectly debugged code (yeah, right) in order to optimize
>> it. I never felt the need to profile line by line, it was obvious from the
>> profile which part of the code was casuing the drag.
>
> We have not figured out how to profile line-by-line. Doesn't seem to
> be possible Turning on all the system routines, etc. didn't help
> either for this problem.
>
> We have resorted to the simple expedient of commenting out blocks of
> code (where it won't affect the computation) or moving blocks of code
> into temporary subroutines. In our case, at least, it has turned out
> to be relatively simple to isolate the computationally-intensive block.
>
> We have discovered a couple of minor algorithmic optimizations that we
> are testing.
>
> Ken
Re: Profiler [message #27420 is a reply to message #27333] Fri, 19 October 2001 13:11 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <9qoeu3$hm8$1@mwrns.noaa.gov>, Pavel Romashkin
<pavel.romashkin@noaa.gov> wrote:

> Its been a while, nobody answered. Have you tried it, Ken?
> I only profiled perfectly debugged code (yeah, right) in order to optimize
> it. I never felt the need to profile line by line, it was obvious from the
> profile which part of the code was casuing the drag.

We have not figured out how to profile line-by-line. Doesn't seem to
be possible Turning on all the system routines, etc. didn't help
either for this problem.

We have resorted to the simple expedient of commenting out blocks of
code (where it won't affect the computation) or moving blocks of code
into temporary subroutines. In our case, at least, it has turned out
to be relatively simple to isolate the computationally-intensive block.

We have discovered a couple of minor algorithmic optimizations that we
are testing.

Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Really really long format keywords
Next Topic: Re: using an unlnown number of keywords

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

Current Time: Wed Oct 08 14:56:02 PDT 2025

Total time taken to generate the page: 0.00480 seconds