audio
This commit is contained in:
15
modules/package-collections/perf.nix
Normal file
15
modules/package-collections/perf.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
perf
|
||||
hotspot
|
||||
(writeShellScriptBin "start-recording" ''
|
||||
PID=$(pgrep $1)
|
||||
if [ -z "$PID" ]; then
|
||||
echo "Process $1 not found."
|
||||
exit 1
|
||||
fi
|
||||
sudo perf record -F 999 -p $PID -g
|
||||
'')
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user