diff --git a/home-leo.nix b/home-leo.nix index 7d2d920..e366a91 100644 --- a/home-leo.nix +++ b/home-leo.nix @@ -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 = { diff --git a/home.nix b/home.nix index 12af636..913ddcb 100644 --- a/home.nix +++ b/home.nix @@ -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; + }; }; }