aboutsummaryrefslogtreecommitdiffstats
path: root/internal/debug/api.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-05-06 17:15:05 +0800
committerFelix Lange <fjl@twurst.com>2016-05-06 17:15:05 +0800
commitae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0 (patch)
tree0afff0a9a51256873b44a4a026eb955ad8651257 /internal/debug/api.go
parenta1c201a5ac977bd090ca07fecdb29f494afb5ce2 (diff)
downloaddexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar.gz
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar.bz2
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar.lz
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar.xz
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.tar.zst
dexon-ae9ed5c420dc7babc5754fbb88c7bfe893d5dcf0.zip
internal/debug: also rename debug_startTrace to debug_startGoTrace
This was missing from the previous change.
Diffstat (limited to 'internal/debug/api.go')
-rw-r--r--internal/debug/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/debug/api.go b/internal/debug/api.go
index a0bff2768..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) {
@@ -134,11 +134,11 @@ func (h *HandlerT) StopCPUProfile() error {
// GoTrace turns on tracing for nsec seconds and writes
// trace data to file.
func (h *HandlerT) GoTrace(file string, nsec uint) error {
- if err := h.StartTrace(file); err != nil {
+ if err := h.StartGoTrace(file); err != nil {
return err
}
time.Sleep(time.Duration(nsec) * time.Second)
- h.StopTrace()
+ h.StopGoTrace()
return nil
}