|
|
@ -51,7 +51,7 @@ type HandlerT struct { |
|
|
|
traceFile string |
|
|
|
traceFile string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Verbosity sets the glog verbosity floor.
|
|
|
|
// Verbosity sets the glog verbosity ceiling.
|
|
|
|
// The verbosity of individual packages and source files
|
|
|
|
// The verbosity of individual packages and source files
|
|
|
|
// can be raised using Vmodule.
|
|
|
|
// can be raised using Vmodule.
|
|
|
|
func (*HandlerT) Verbosity(level int) { |
|
|
|
func (*HandlerT) Verbosity(level int) { |
|
|
@ -134,11 +134,11 @@ func (h *HandlerT) StopCPUProfile() error { |
|
|
|
// GoTrace turns on tracing for nsec seconds and writes
|
|
|
|
// GoTrace turns on tracing for nsec seconds and writes
|
|
|
|
// trace data to file.
|
|
|
|
// trace data to file.
|
|
|
|
func (h *HandlerT) GoTrace(file string, nsec uint) error { |
|
|
|
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 |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
time.Sleep(time.Duration(nsec) * time.Second) |
|
|
|
time.Sleep(time.Duration(nsec) * time.Second) |
|
|
|
h.StopTrace() |
|
|
|
h.StopGoTrace() |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|