kubernetes/vendor/golang.org/x/net/trace/events.go

const maxEventsPerLog

type bucket

var buckets

// RenderEvents renders the HTML page typically served at /debug/events.
// It does not do any auth checking. The request may be nil.
//
// Most users will use the Events handler.
func RenderEvents(w http.ResponseWriter, req *http.Request, sensitive bool) {}

func parseEventsArgs(req *http.Request) (fam string, b int, ok bool) {}

type EventLog

// NewEventLog returns a new EventLog with the specified family name
// and title.
func NewEventLog(family, title string) EventLog {}

func (el *eventLog) Finish() {}

var famMu

var families

func getEventFamily(fam string) *eventFamily {}

type eventFamily

func (f *eventFamily) add(el *eventLog) {}

func (f *eventFamily) remove(el *eventLog) {}

func (f *eventFamily) Count(now time.Time, maxErrAge time.Duration) (n int) {}

func (f *eventFamily) Copy(now time.Time, maxErrAge time.Duration) (els eventLogs) {}

type eventLogs

// Free calls unref on each element of the list.
func (els eventLogs) Free() {}

// eventLogs may be sorted in reverse chronological order.
func (els eventLogs) Len() int           {}

func (els eventLogs) Less(i, j int) bool {}

func (els eventLogs) Swap(i, j int)      {}

type logEntry

// WhenString returns a string representation of the elapsed time of the event.
// It will include the date if midnight was crossed.
func (e logEntry) WhenString() string {}

type eventLog

func (el *eventLog) reset() {}

func (el *eventLog) hasRecentError(now time.Time, maxErrAge time.Duration) bool {}

// delta returns the elapsed time since the last event or the log start,
// and whether it spans midnight.
// L >= el.mu
func (el *eventLog) delta(t time.Time) (time.Duration, bool) {}

func (el *eventLog) Printf(format string, a ...interface{}

func (el *eventLog) Errorf(format string, a ...interface{}

func (el *eventLog) printf(isErr bool, format string, a ...interface{}

func (el *eventLog) ref() {}

func (el *eventLog) unref() {}

func (el *eventLog) When() string {}

func (el *eventLog) ElapsedTime() string {}

func (el *eventLog) Stack() string {}

// printStackRecord prints the function + source line information
// for a single stack trace.
// Adapted from runtime/pprof/pprof.go.
func printStackRecord(w io.Writer, stk []uintptr) {}

func (el *eventLog) Events() []logEntry {}

var freeEventLogs

// newEventLog returns a event log ready to use.
func newEventLog() *eventLog {}

// freeEventLog adds el to freeEventLogs if there's room.
// This is non-blocking.
func freeEventLog(el *eventLog) {}

var eventsTmplCache

var eventsTmplOnce

func eventsTmpl() *template.Template {}

const eventsHTML