Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Tips: Call Graph and launching scripts...

David_A_Intel1
Employee
391 Views
In the current version, 3.0, when using the Call Graph collector to collect data on an application that is started by a script, you need to make sure the application and the directory it resides in are writable by the user executing the VTune analyzer. This means, for example,you cannot call graph an application that is installed on a shared, non-writable NFS drive.
Second,you musthave the environment configured as it will be when the application runs in the script, before you start the analyzer. Yes, this is a known limitation. :-( One way to deal with this is to replace the application invocation in the script with the invocation of the analyzer that would then launch the application. This change is required so that any changes that may effect which libraries are loaded by the application can be taken into account by the analyzer when it instruments the application and referenced libraries.
Another limitation of using a script to launch your application is that the analyzer will only collect call graph data for the first invocation of the application. So, if your script launches the application several times, you will only see data for the first time.
We are hoping to address many of these in a future release.
0 Kudos
3 Replies
jeffrey-gallagher
391 Views
Great post, Dave. Thanks!
jdg
0 Kudos
Matt_Walsh
Beginner
391 Views
Dave,

Does this assume you have already manually created instrumented executables, or does th Call Graph collector automatically instrument whatever executables you invoke in your script?

--Matt
0 Kudos
David_A_Intel1
Employee
391 Views
The analyzer will instrument the "module of interest" (moi) and any shared objects it loads. So, you specify the script as the "app" and the executable as the "moi".

Message Edited by DaveA on 04-27-2005 03:01 PM

0 Kudos
Reply