bigslice: github.com/grailbio/bigslice/internal/trace Index | Files

package trace

import "github.com/grailbio/bigslice/internal/trace"

Index

Package Files

trace.go

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: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview

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.