From f6d8102c60d45c4ba01d58e39d53052e13f6564d Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Sat, 2 Sep 2023 07:53:33 -0500 Subject: [PATCH] fix: --prof flag --- ledger/cmd/root.go | 2 +- ledger/genprofile.bash | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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