Lines Matching defs:trace
63 package trace // import "golang.org/x/net/trace" package
623 match(t *trace) bool
629 func (m minCond) match(t *trace) bool { return t.Elapsed >= time.Duration(m) }
680 type trace struct { struct
682 Family string
685 Title string
688 Start time.Time
689 Elapsed time.Duration // zero while active
692 traceID uint64
693 spanID uint64
696 IsError bool
699 mu sync.RWMutex
700 events []event
701 maxEvents int
703 refs int32 // how many buckets this is in
704 recycler func(interface{})
705 disc discarded // scratch space to avoid allocation
707 finishStack []byte // where finish was called, if DebugUseAfterFinish is set
709 eventsBuf [4]event // preallocated buffer in case we only log a few events
712 func (tr *trace) reset() {
735 func (tr *trace) delta(t time.Time) (time.Duration, bool) {
743 func (tr *trace) addEvent(x interface{}, recyclable, sensitive bool) {
796 func (tr *trace) LazyLog(x fmt.Stringer, sensitive bool) {
800 func (tr *trace) LazyPrintf(format string, a ...interface{}) {
804 func (tr *trace) SetError() { tr.IsError = true }
806 func (tr *trace) SetRecycler(f func(interface{})) {
810 func (tr *trace) SetTraceInfo(traceID, spanID uint64) {
814 func (tr *trace) SetMaxEvents(m int) {
821 func (tr *trace) ref() {
825 func (tr *trace) unref() {
842 func (tr *trace) When() string {
846 func (tr *trace) ElapsedTime() string {
855 func (tr *trace) Events() []event {
875 func freeTrace(tr *trace) {