nix(home-manager): add xtime

ref: https://go.dev/blog/pprof
This commit is contained in:
leo 2023-02-24 14:08:36 +01:00
parent dc37295ce7
commit ec0abecb6b
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
2 changed files with 18 additions and 0 deletions

@ -415,6 +415,15 @@ in {
'';
executable = true;
};
# ref: https://go.dev/blog/pprof
".local/bin/xtime" = {
text = ''
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
'';
executable = true;
};
};
xdg = {

@ -313,5 +313,14 @@
'';
executable = true;
};
# ref: https://go.dev/blog/pprof
".local/bin/xtime" = {
text = ''
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
'';
executable = true;
};
};
}