Wanted to share how to use oprofile nowadays. Every tutorial on the Internet I found uses
opcontrol, but, well…
$ sudo opcontrol --reset sudo: opcontrol: command not found
$ man -k start-daemon start-daemon: nothing appropriate.
I don’t know what happened, but the way it works now is through
sudo operf mycommand — or rather, since we don’t want to run the profiled app with elevated rights, just run the app, and connect
operf to its pid, like
sudo operf --pid=8888.
For some reason
operf stay running even when the app exited, just press ^C to stop
operf, it would create a profiling data, then you can use
opreport as usual, like in tutorials.