bigslice: Index | Files

package trace

import ""


Package Files


type Event Uses

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 Uses

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

T represents the JSON object format in the Chrome tracing format. For more details, see:

func (*T) Decode Uses

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 Uses

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

Encode JSON encodes t into w.

Package trace imports 2 packages (graph) and is imported by 2 packages. Updated 2020-06-04. Refresh now. Tools for package owners.