Fix mem profile

pull/2813/head
Junegunn Choi 2 months ago
parent 5aadcef244
commit 2086012ac9
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -37,7 +37,8 @@ make release
>
> ```sh
> TAGS=pprof make clean install
> fzf --profile-cpu /tmp/cpu.pprof
> fzf --profile-cpu /tmp/cpu.pprof --profile-mem /tmp/mem.pprof \
> --profile-block /tmp/block.pprof --profile-mutex /tmp/mutex.pprof
> ```
Third-party libraries used

@ -47,7 +47,7 @@ func (o *Options) initProfiling() error {
}
util.AtExit(func() {
runtime.GC()
util.AtExit(func() { stopProfile("allocs", f) })
stopProfile("allocs", f)
})
}

Loading…
Cancel
Save