go/src/cmd/trace/main.go

const usageMessage

var httpFlag

var pprofFlag

var debugFlag

var programBinary

var traceFile

func main() {}

func logAndDie(err error) {}

func parseTraceInteractive(tr io.Reader, size int64) (parsed *parsedTrace, err error) {}

type parsedTrace

func parseTrace(rr io.Reader, size int64) (*parsedTrace, error) {}

func (t *parsedTrace) startTime() trace.Time {}

func (t *parsedTrace) endTime() trace.Time {}

// splitTrace splits the trace into a number of ranges, each resulting in approx 100 MiB of
// json output (the trace viewer can hardly handle more).
func splitTrace(parsed *parsedTrace) ([]traceviewer.Range, error) {}

func debugProcessedEvents(trc io.Reader) error {}

func debugRawEvents(trc io.Reader) error {}

func debugEventsFootprint(trc io.Reader) error {}

type countingReader

func (c *countingReader) Read(buf []byte) (n int, err error) {}

type byteCount

func (b byteCount) String() string {}