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

@ -89,7 +89,7 @@ func Setup(ctx *cli.Context) error {
runtime.MemProfileRate = ctx.GlobalInt(memprofilerateFlag.Name)
Handler.SetBlockProfileRate(ctx.GlobalInt(blockprofilerateFlag.Name))
if traceFile := ctx.GlobalString(traceFlag.Name); traceFile != "" {
if err := Handler.StartTrace(traceFile); err != nil {
if err := Handler.StartGoTrace(traceFile); err != nil {
return err
}
}
@ -114,5 +114,5 @@ func Setup(ctx *cli.Context) error {
// respective file.
func Exit() {
Handler.StopCPUProfile()
Handler.StopTrace()
Handler.StopGoTrace()
}