Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Pid  int                    `json:"pid"`
	Tid  int                    `json:"tid"`
	Ts   int64                  `json:"ts"`
	Ph   string                 `json:"ph"`
	Dur  int64                  `json:"dur,omitempty"`
	Name string                 `json:"name"`
	Cat  string                 `json:"cat,omitempty"`
	Args map[string]interface{} `json:"args"`
}

    Event is an event in the Chrome tracing format. The fields are mirrored exactly.

    type T

    type T struct {
    	Events []Event `json:"traceEvents"`
    }

      T represents the JSON object format in the Chrome tracing format. For more details, see: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview

      func (*T) Decode

      func (t *T) Decode(r io.Reader) error

        Decode decodes the JSON object format read from r into t. Call this with a t zero value.

        func (*T) Encode

        func (t *T) Encode(w io.Writer) error

          Encode JSON encodes t into w.

          Source Files