hotspot icon indicating copy to clipboard operation
hotspot copied to clipboard

allow launching perf on remote machines

Open milianw opened this issue 7 years ago • 4 comments

Extend the feature in #11 to allow running perf on a remote machine via ssh, then stream the data to localhost

milianw avatar Dec 23 '16 13:12 milianw

It would be nice if hotspot can help with the setup here, which might not be easy for novice users. Especially setting up debug symbols, which might only be available on the host's sysroot.

tmcguire avatar Jan 25 '17 09:01 tmcguire

Presumably another thing that would be needed here would be to supply a symbol file other than the one named in perf.data, as the binary may reside at a different location locally.

jonhoo avatar Jul 03 '17 17:07 jonhoo

@jonhoo not sure, but I think what you mention is implemented already. Have a look at the command line arguments, cf.:

$ hotspot --help
Usage: hotspot [options] [files...]
Linux perf GUI for performance analysis.

Options:
  -h, --help               Displays this help.
  -v, --version            Displays version information.
  --sysroot <path>         Path to sysroot which is used to find libraries.
  --kallsyms <path>        Path to kallsyms file which is used to resolve
                           kernel symbols.
  --debugPaths <paths>     Colon separated list of paths that contain debug
                           information.
  --extraLibPaths <paths>  Colon separated list of extra paths to find
                           libraries.
  --appPath <path>         Path to folder containing the application executable
                           and libraries.
  --arch <path>            Architecture to use for unwinding.

Arguments:
  files                    Optional input files to open on startup, i.e.
                           perf.data files

milianw avatar Jul 04 '17 08:07 milianw

Ah, yes, you're right. My bad for not digging a bit further.

jonhoo avatar Jul 04 '17 15:07 jonhoo