diff options
Diffstat (limited to 'internal/debug/api.go')
-rw-r--r-- | internal/debug/api.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/debug/api.go b/internal/debug/api.go index 2cb264040..96091541b 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -51,7 +51,7 @@ type HandlerT struct { traceFile string } -// Verbosity sets the glog verbosity floor. +// Verbosity sets the glog verbosity ceiling. // The verbosity of individual packages and source files // can be raised using Vmodule. func (*HandlerT) Verbosity(level int) { @@ -131,14 +131,14 @@ func (h *HandlerT) StopCPUProfile() error { return nil } -// Trace turns on tracing for nsec seconds and writes +// GoTrace turns on tracing for nsec seconds and writes // trace data to file. -func (h *HandlerT) Trace(file string, nsec uint) error { - if err := h.StartTrace(file); err != nil { +func (h *HandlerT) GoTrace(file string, nsec uint) error { + if err := h.StartGoTrace(file); err != nil { return err } time.Sleep(time.Duration(nsec) * time.Second) - h.StopTrace() + h.StopGoTrace() return nil } |