go/src/cmd/trace/tasks.go

// UserTasksHandlerFunc returns a HandlerFunc that reports all tasks found in the trace.
func UserTasksHandlerFunc(t *parsedTrace) http.HandlerFunc {}

type taskStats

func (s *taskStats) UserTaskURL(complete bool) func(min, max time.Duration) string {}

func (s *taskStats) add(task *trace.UserTaskSummary) {}

var templUserTaskTypes

// UserTaskHandlerFunc returns a HandlerFunc that presents the details of the selected tasks.
func UserTaskHandlerFunc(t *parsedTrace) http.HandlerFunc {}

var templUserTaskType

type taskFilter

// match returns true if a task, described by its ID and summary, matches
// the filter.
func (f *taskFilter) match(t *parsedTrace, task *trace.UserTaskSummary) bool {}

// newTaskFilter creates a new task filter from URL query variables.
func newTaskFilter(r *http.Request) (*taskFilter, error) {}

func taskInterval(t *parsedTrace, s *trace.UserTaskSummary) interval {}

func taskMatches(t *trace.UserTaskSummary, text string) bool {}

func describeEvent(ev *trace.Event) string {}

func primaryGoroutine(ev *trace.Event) trace.GoID {}

func elapsed(d time.Duration) string {}

func asMillisecond(d time.Duration) float64 {}