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

Intel vTune: Mac OS X source issue for remote target

Mspiz
New Contributor I
532 Views
 
Hi all,
I use Vtune for Mac OSX, to monitor performance on Linux remote targets.
 
Below is a snapshot showing where I am, using tachyon sample:
 
Vtune_colfax_test.png
 
 
 
 
 
On the remote machine I use the home folder where I have permission to write.
 
My doubts arise about managing source files.
 
Currently the displayed sources are copied to my local "osx" machine.
 
Is this the right procedure?
 
Also by double-clicking on the relevant statement, a popup tells me that the EDITOR or VISUAL environment variables are not set.
 
So, Do I make a variable setting error or under mac osx this feature is not provided?
 
 
Thanks in advance for your time.
 
0 Kudos
4 Replies
Denis_M_Intel
Employee
532 Views

 Hello,

 Could you re-attach a snapshot? Source files and symbols files should be located on the OSX host system, their directories should be added to Source and Binary/Symbol search paths in VTune as described in https://software.intel.com/en-us/vtune-amplifier-help-search-directories-for-remote-linux-targets.

 

0 Kudos
Mspiz
New Contributor I
532 Views

Thank you for the reply.

below the image we are talking about.

 

Vtune_colfax_test.png

 

In fact, that's what I do. I wanted to be sure it was the right procedure. I use the GUI, as in the previous photo.

Going by steps:
  1) Identify the possible function to optimize ->ok
  2) I double-click on the function under analysis and open the source -> ok

Now, I think that by setting environment variables and double-clicking on the code (selected on photo)

should open the file with the editor that I set in the environment variables.

I'm on macOsx, so:
"launchctl setenv VISUAL /Applications/TextEdit.app/Contents/MacOS/TextEdit"

or

"launchctl setenv EDITOR /Applications/TextEdit.app/Contents/MacOS/TextEdit"

But it does not allow me to modify the source code.

My question is:

This is why it is the version for mac, so it is expected that the code will be modified directly on the remote machine ?

or

Is this feature badly set up on my machine?


C.

0 Kudos
Dmitry_K_Intel1
Employee
532 Views

 

Hi,

 

Setting VISUAL or EDITOR allows automatically open 3rd party editor from Vtune GUI source view to edit source code. This is some kind of helper but you may open any editor by hands and load source code there to edit…

 

So, Are there any changes in behavior when you set environment variable  VISUAL or EDITOR? Do you still see popup tells you that the EDITOR or VISUAL environment variables are not set?If you still see the popup then it means the variables are not set for Vtune GUI. You may try to open a terminal window, set environment variable(s) via
>export EDITOR=/Applications/TextEdit.app/Contents/MacOS/TextEdit
or
>export VISUAL=/Applications/TextEdit.app/Contents/MacOS/TextEdit

 

After that you may start Vtune from the opened terminal window via

>open /Applications/Intel_VTune_Amplifier_2018.app

Next you may try to repeat actions to open set 3rd party editor from VTune source view.

0 Kudos
Mspiz
New Contributor I
532 Views

Hi Dimitry, thanks for your time.

I did the procedure that you suggest and have the same result of my procedure expose in a before post.

I don't see the popup but also the editor is not opened.

I don't receive other kind of error or popup.

After double-click only see the "clock" in the mouse pointer for few milliseconds, but nothing else happens. 

Thanks in advanced.

 

0 Kudos
Reply