diff --git a/ledger/cmd/root.go b/ledger/cmd/root.go index df2d8d4f..92e73ddf 100644 --- a/ledger/cmd/root.go +++ b/ledger/cmd/root.go @@ -63,7 +63,7 @@ func init() { ledgerFilePath = os.Getenv("LEDGER_FILE") rootCmd.PersistentFlags().StringVarP(&ledgerFilePath, "file", "f", ledgerFilePath, "ledger file (default is $LEDGER_FILE)") - rootCmd.PersistentFlags().StringVarP(&cpuprofile, "profile", "", "", "write profile to `file`") + rootCmd.PersistentFlags().StringVarP(&cpuprofile, "prof", "", "", "write cpu profile to `file`") } // initConfig reads in config file and ENV variables if set. diff --git a/ledger/genprofile.bash b/ledger/genprofile.bash index 7b0aeb1a..779920d8 100755 --- a/ledger/genprofile.bash +++ b/ledger/genprofile.bash @@ -1,9 +1,9 @@ #!/usr/bin/env bash -./ledger --profile "bal.pprof" bal > /dev/null -./ledger --profile "reg.pprof" reg > /dev/null -./ledger --profile "print.pprof" print > /dev/null -./ledger --profile "stats.pprof" stats > /dev/null +./ledger --prof "bal.pprof" bal > /dev/null +./ledger --prof "reg.pprof" reg > /dev/null +./ledger --prof "print.pprof" print > /dev/null +./ledger --prof "stats.pprof" stats > /dev/null rm default.pgo