IDL code profiler

1172 단어
The Code Profiler helps you analyze the performance of your applications. You can easily use it to monitor the calling frequency and execution time for procedures and functions. The Profiler can be used with programs entered from the command line as well as programs run from within a file
When it comes to understanding why a given bit of IDL code is so slow, there really is no need to speculate, given how easy using the IDL profiling tool is. Just make sure your routines of interest are compiled (typically just by running your program once), and then type commands like this.
   IDL> Profiler, /SYSTEM & Profiler
   IDL> run_your_code_here
   IDL> Profiler, /REPORT

You will get instant access to a nice table summarizing the number of times each routine (compiled user routine or system routine) is called, how long each routine took per call and in total, etc. Then work a bit on the slowest function or functions, re-compile, and reset the profiler for the next run by typing this.
   IDL> Profiler, /RESET

좋은 웹페이지 즐겨찾기