github aquaproj/aqua v1.10.0-0

latest releases: v2.32.0, v2.31.0, v2.31.0-3...
pre-release2 years ago

Pull Requests | Issues | v1.9.0...v1.10.0-0

Features

#825 Add global command line options -trace and -cpu-profile for tracing and CPU Profiling

This is useful for the performance tuning.

The following Go's standard libraries are used.

How to use

All sub commands except for help and version commands support this option.

Tracing with runtime/trace

$ aqua -trace trace.out exec -- gh version # a file trace.out is created
$ go tool trace trace.out
2022/06/01 11:18:47 Parsing trace...
2022/06/01 11:18:47 Splitting trace...
2022/06/01 11:18:47 Opening browser. Trace viewer is listening on http://127.0.0.1:58380

image

CPU Profiling with runtime/pprof

$ aqua -cpu-profile pprof.out exec -- gh version # a file pprof.out is created
$ go tool pprof -http=":8000" "$(which aqua)" pprof.out

image

Don't miss a new aqua release

NewReleases is sending notifications on new releases.