mirror of
https://github.com/restic/restic.git
synced 2025-05-20 21:58:19 +00:00
12 lines
277 B
Go
12 lines
277 B
Go
// +build go1.7
|
|
|
|
package profile
|
|
|
|
import "runtime/trace"
|
|
|
|
// Trace profile controls if execution tracing will be enabled. It disables any previous profiling settings.
|
|
func TraceProfile(p *profile) { p.mode = traceMode }
|
|
|
|
var startTrace = trace.Start
|
|
var stopTrace = trace.Stop
|