Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4679 Discussions

Tips: Call Graph and launching scripts...

David_A_Intel1
Employee
185 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
185 Views
Great post, Dave. Thanks!
jdg
Matt_Walsh
Beginner
185 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
David_A_Intel1
Employee
185 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

Reply