Help us shape the future of Go! Take the 2026 Go Developer Survey

flame

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: NCSA Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTraceFile

func ConvertTraceFile(path string) ([]byte, error)

func GenerateHtml

func GenerateHtml(wr io.Writer, name string, stack string)

func Marshal

func Marshal(trace model.Trace) ([]byte, error)

Types

type Node

type Node struct {
	ID       string            `json:"-,omitempty"`
	Name     string            `json:"name,omitempty"`
	Value    int               `json:"value,omitempty"`
	Interval *convert.Interval `json:"-"`
	Children []*Node           `json:"children,omitempty"`
}

func Convert

func Convert(tr model.Trace) (*Node, error)

func (*Node) MarshalIndentJSON

func (n *Node) MarshalIndentJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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