goroutine

package
v0.0.0-...-0c7b888 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallInfo

type CallInfo struct {
	SourcePath string `json:"source_path"`
	LineNo     int    `json:"line_num"`
	FuncName   string `json:"func_name"`
	ArgList    string `json:"arg_list"`
}

type GoroutineTrace

type GoroutineTrace struct {
	EventTime time.Time `json:"event_time"`
	CreatedBy CallInfo  `json:"created_by"`
	ID        string    `json:"id"`
	State     string    `json:"state"`
	Locked    bool      `json:"locked"`
	SleepMin  int       `json:"sleep_min"`
	CallStack Stack     `json:"call_stack"`
}

func NewGoroutineTrace

func NewGoroutineTrace(routine stack.Goroutine, eventTime time.Time) *GoroutineTrace

type Stack

type Stack struct {
	Calls  []CallInfo `json:"calls"`
	Elided bool       `json:"elided"`
}

Jump to

Keyboard shortcuts

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