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

Home » Public Forums » archive » Re: Possible to get name of current procedure from within procedure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Possible to get name of current procedure from within procedure? [message #70822 is a reply to message #70818] Tue, 11 May 2010 06:53 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 11, 10:42 am, Rob <robparke...@googlemail.com> wrote:
> I'm not sure if this question even makes sense but what I was
> wondering is does IDL have any sort of function or variable that can
> output the name of the procedure/function that is currently being
> executed?

scope_traceback() gives you the entire call stack.

>
> What I'd like to do is write a generic bit of code that spawns the
> system time and outputs this to a file, ALONG with the name of the
> procedure where the spawn command was executed.

systime() is probably better than spawning a process just to get the
time.

>
> Ultimately this would be something we'd add to all of our modular
> procedures in order to monitor performance and see how fast each
> module was running.

This sounds a lot like what the profiler does.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: LV Handbags ((http://www.jialiuonline.com
Next Topic: Re: Tips for IDL-istic file transfer...? Please help me.

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

Current Time: Sat Oct 11 00:18:12 PDT 2025

Total time taken to generate the page: 1.43578 seconds