aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/main.go b/main.go
index 58d5e06..1599d53 100644
--- a/main.go
+++ b/main.go
@@ -185,18 +185,6 @@ func main() {
} else {
args.config = filepath.Join(args.cipherdir, configfile.ConfDefaultName)
}
- // "-cpuprofile"
- if args.cpuprofile != "" {
- tlog.Info.Printf("Writing CPU profile to %s", args.cpuprofile)
- var f *os.File
- f, err = os.Create(args.cpuprofile)
- if err != nil {
- tlog.Fatal.Println(err)
- os.Exit(exitcodes.Init)
- }
- pprof.StartCPUProfile(f)
- defer pprof.StopCPUProfile()
- }
// "-force_owner"
if args.force_owner != "" {
var uidNum, gidNum int64
@@ -217,6 +205,18 @@ func main() {
}
args._forceOwner = &fuse.Owner{Uid: uint32(uidNum), Gid: uint32(gidNum)}
}
+ // "-cpuprofile"
+ if args.cpuprofile != "" {
+ tlog.Info.Printf("Writing CPU profile to %s", args.cpuprofile)
+ var f *os.File
+ f, err = os.Create(args.cpuprofile)
+ if err != nil {
+ tlog.Fatal.Println(err)
+ os.Exit(exitcodes.Init)
+ }
+ pprof.StartCPUProfile(f)
+ defer pprof.StopCPUProfile()
+ }
// "-memprofile"
if args.memprofile != "" {
tlog.Info.Printf("Writing mem profile to %s", args.memprofile)