internal/debug: also rename debug_startTrace to debug_startGoTrace

This was missing from the previous change.
This commit is contained in:
Felix Lange
2016-05-06 11:15:05 +02:00
parent a1c201a5ac
commit ae9ed5c420
5 changed files with 14 additions and 14 deletions

View File

@ -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
}