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

Home » Public Forums » archive » keep track of all libraries used
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
keep track of all libraries used [message #93358] Wed, 22 June 2016 20:43 Go to next message
hoiting2008 is currently offline  hoiting2008
Messages: 4
Registered: March 2014
Junior Member
I'm cleaning up my code and would like to keep track of all the functions and procedures (libraries and scripts) called under the main routine. Is there an easy way to know that?

Essentially what I want to know is what libraries I need to wrap up in the final package and what libraries aren't used and can be thrown away, before I zip everything and send the zip file to my colleagues.

I tried routine_info(/source) but it doesn't give me every routine I used, only those closer to the upper levels.

Thanks!
Re: keep track of all libraries used [message #93360 is a reply to message #93358] Thu, 23 June 2016 06:15 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Does RESOLVE_ALL do what you want?

On Wednesday, June 22, 2016 at 11:43:24 PM UTC-4, hoiti...@gmail.com wrote:
> I'm cleaning up my code and would like to keep track of all the functions and procedures (libraries and scripts) called under the main routine. Is there an easy way to know that?
>
> Essentially what I want to know is what libraries I need to wrap up in the final package and what libraries aren't used and can be thrown away, before I zip everything and send the zip file to my colleagues.
>
> I tried routine_info(/source) but it doesn't give me every routine I used, only those closer to the upper levels.
>
> Thanks!
Re: keep track of all libraries used [message #93362 is a reply to message #93358] Fri, 24 June 2016 01:16 Go to previous messageGo to next message
andrewcool777 is currently offline  andrewcool777
Messages: 27
Registered: November 2012
Junior Member
On Thursday, 23 June 2016 13:13:24 UTC+9:30, hoiti...@gmail.com wrote:
> I'm cleaning up my code and would like to keep track of all the functions and procedures (libraries and scripts) called under the main routine. Is there an easy way to know that?
>
> Essentially what I want to know is what libraries I need to wrap up in the final package and what libraries aren't used and can be thrown away, before I zip everything and send the zip file to my colleagues.
>
> I tried routine_info(/source) but it doesn't give me every routine I used, only those closer to the upper levels.
>
> Thanks!

and to expand on Wayne's response,

Resolve_all

help,/source,out=routine_list
help,routine_list
ROUTINE_LIST STRING Array[nnn]

So you end up with a string array giving the full filename of each source file.
Now you just need a few lines of code to parse that array and copy those files into some distribution folder for zipping.

Andrew
Re: keep track of all libraries used [message #93387 is a reply to message #93362] Wed, 29 June 2016 03:01 Go to previous messageGo to next message
hoiting2008 is currently offline  hoiting2008
Messages: 4
Registered: March 2014
Junior Member
Perfect! That's what I'm looking for. Thanks!

On Saturday, June 25, 2016 at 11:51:53 AM UTC+10, andrew...@gmail.com wrote:
> On Thursday, 23 June 2016 13:13:24 UTC+9:30, hoiti...@gmail.com wrote:
>> I'm cleaning up my code and would like to keep track of all the functions and procedures (libraries and scripts) called under the main routine. Is there an easy way to know that?
>>
>> Essentially what I want to know is what libraries I need to wrap up in the final package and what libraries aren't used and can be thrown away, before I zip everything and send the zip file to my colleagues.
>>
>> I tried routine_info(/source) but it doesn't give me every routine I used, only those closer to the upper levels.
>>
>> Thanks!
>
> and to expand on Wayne's response,
>
> Resolve_all
>
> help,/source,out=routine_list
> help,routine_list
> ROUTINE_LIST STRING Array[nnn]
>
> So you end up with a string array giving the full filename of each source file.
> Now you just need a few lines of code to parse that array and copy those files into some distribution folder for zipping.
>
> Andrew
Re: keep track of all libraries used [message #93415 is a reply to message #93362] Fri, 08 July 2016 09:52 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Friday, June 24, 2016 at 6:51:53 PM UTC-7, andrew...@gmail.com wrote:
> Resolve_all
> help,/source,out=routine_list

Very nice! Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Laggy plotting
Next Topic: h5_parse() in the profiler

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

Current Time: Wed Oct 08 13:40:20 PDT 2025

Total time taken to generate the page: 0.00403 seconds