From 580b096df456239258e3222bd7bd62e1eeeeec79 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 30 Jul 2024 12:58:19 +0900 Subject: Update 'go tool trace' completion --- src/_golang | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/_golang b/src/_golang index 87e7d54..c4a4d2a 100644 --- a/src/_golang +++ b/src/_golang @@ -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' ;; -- cgit v1.2.3-70-g09d2