trace-cmd record
linux
Capture kernel trace events. See also: `trace-cmd list`, `trace-cmd report`.
More info →Examples (6)
Record a trace with a specific plugin
sudo trace-cmd record -p pluginRecord a trace of a specific executable
sudo trace-cmd record -F executableRecord a trace of a specific function
Exclude a specific function from the trace
Limit the function call graph depth
sudo trace-cmd record --max-graph-depth depthRecord a trace from a specific process ID
sudo trace-cmd record -P pidmade by @shridhargupta | data from tldr-pages