Update 'go tool trace' completion

This commit is contained in:
Shohei YOSHIDA 2024-07-30 12:58:19 +09:00
parent da937c9124
commit 580b096df4
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 10 additions and 1 deletions

View File

@ -1049,9 +1049,18 @@ case $state in
'*:files:_files'
;;
trace)
(trace)
local -a trace_types=(
"net:network blocking profile"
"sync:synchronization blocking profile"
"syscall:syscall blocking profile"
"scheduler:latency profile"
)
_arguments \
'-pprof=[profile type]:type:{_describe "type" trace_types}' \
'-http=[HTTP service address]:addr' \
'-d=[print debug info such as parsed events]:level:((1\:"high-level" 2\:"low-level"))' \
'*:files:_files'
;;