Lines Matching defs:trace

63 package trace // import "golang.org/x/net/trace"  package
657 match(t *trace) bool
663 func (m minCond) match(t *trace) bool { return t.Elapsed >= time.Duration(m) }
714 type trace struct { struct
716 Family string
719 Title string
722 Start time.Time
724 mu sync.RWMutex
725 events []event // Append-only sequence of events (modulo discards).
726 maxEvents int
727 recycler func(interface{})
728 IsError bool // Whether this trace resulted in an error.
729 Elapsed time.Duration // Elapsed time for this trace, zero while active.
730 traceID uint64 // Trace information if non-zero.
731 spanID uint64
733 refs int32 // how many buckets this is in
734 disc discarded // scratch space to avoid allocation
736 finishStack []byte // where finish was called, if DebugUseAfterFinish is set
738 eventsBuf [4]event // preallocated buffer in case we only log a few events
741 func (tr *trace) reset() {
768 func (tr *trace) delta(t time.Time) (time.Duration, bool) {
776 func (tr *trace) addEvent(x interface{}, recyclable, sensitive bool) {
829 func (tr *trace) LazyLog(x fmt.Stringer, sensitive bool) {
833 func (tr *trace) LazyPrintf(format string, a ...interface{}) {
837 func (tr *trace) SetError() {
843 func (tr *trace) SetRecycler(f func(interface{})) {
849 func (tr *trace) SetTraceInfo(traceID, spanID uint64) {
855 func (tr *trace) SetMaxEvents(m int) {
864 func (tr *trace) ref() {
868 func (tr *trace) unref() {
887 func (tr *trace) When() string {
891 func (tr *trace) ElapsedTime() string {
903 func (tr *trace) Events() []event {
923 func freeTrace(tr *trace) {