Ensure your kernel has performance profling support:
$ sudo perf record -F 99 -g -p <a_running_process_pid> -- sleep 10
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.098 MB perf.data (~4278 samples) ]
Add NOPASSWD sudo configuration for the cstar user:
echo "cstar ALL = (root) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/perf
Enable flamegraph feature in your cluster configuration:
Here's the PR so we can begin to review.
Setup
Install system dependencies
Ensure your kernel has performance profling support:
Add NOPASSWD sudo configuration for the cstar user:
Enable flamegraph feature in your cluster configuration:
The flamegraph working directory default to /tmp/flamegraph if not specified.
Migrate the cstar_perf DB using the following script. (ENSURE you have a backup before)
When enabled, you should see a new flamegraph artifact available in the ViewTest page.