flamebearer

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlamebearerToStandaloneHTML added in v0.8.0

func FlamebearerToStandaloneHTML(fb *FlamebearerProfile, dir http.FileSystem, w io.Writer) error

FlamebearerToStandaloneHTML converts and writes a flamebearer into HTML TODO cache template creation and whatnot?

Types

type FlamebearerMetadataV1

type FlamebearerMetadataV1 struct {
	Format     string `json:"format"`
	SpyName    string `json:"spyName"`
	SampleRate uint32 `json:"sampleRate"`
	Units      string `json:"units"`
}

type FlamebearerProfile

type FlamebearerProfile struct {
	Version uint `json:"version"`
	FlamebearerProfileV1
}

FlamebearerProfile is a versioned flambearer based profile. It's the native format both for rendering and file saving (in adhoc mode).

func NewCombinedProfile

func NewCombinedProfile(output, left, right *storage.GetOutput, maxNodes int) FlamebearerProfile

func NewProfile

func NewProfile(output *storage.GetOutput, maxNodes int) FlamebearerProfile

type FlamebearerProfileV1

type FlamebearerProfileV1 struct {
	Flamebearer FlamebearerV1          `json:"flamebearer"`
	Metadata    FlamebearerMetadataV1  `json:"metadata"`
	Timeline    *FlamebearerTimelineV1 `json:"timeline"`
	LeftTicks   uint64                 `json:"leftTicks,omitempty"`
	RightTicks  uint64                 `json:"rightTicks,omitempty"`
}

type FlamebearerTimelineV1

type FlamebearerTimelineV1 struct {
	StartTime     int64         `json:"startTime"`
	Samples       []uint64      `json:"samples"`
	DurationDelta int64         `json:"durationDelta"`
	Watermarks    map[int]int64 `json:"watermarks"`
}

type FlamebearerV1

type FlamebearerV1 struct {
	Names    []string `json:"names"`
	Levels   [][]int  `json:"levels"`
	NumTicks int      `json:"numTicks"`
	MaxSelf  int      `json:"maxSelf"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL