goroutines

package
v0.0.0-...-e2c53ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

README

Package cloudeng.io/debug/goroutines

import cloudeng.io/debug/goroutines

Functions

Func Format
func Format(gs ...*Goroutine) string

Format formats Goroutines back into the normal string representation.

Types

Type Frame
type Frame struct {
	Call   string
	File   string
	Line   int64
	Offset int64
}

Frame represents a single stack frame.

Type Goroutine
type Goroutine struct {
	ID      int64
	State   string
	Stack   []*Frame
	Creator *Frame
}

Goroutine represents a single goroutine.

Functions
func Get(ignore ...string) ([]*Goroutine, error)

Get gets a set of currently running goroutines and parses them into a structured representation. Any goroutines that match the ignore list are ignored.

func Parse(buf []byte, ignore ...string) ([]*Goroutine, error)

Parse parses a stack trace into a structure representation.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(gs ...*Goroutine) string

Format formats Goroutines back into the normal string representation.

Types

type Frame

type Frame struct {
	Call   string
	File   string
	Line   int64
	Offset int64
}

Frame represents a single stack frame.

type Goroutine

type Goroutine struct {
	ID      int64
	State   string
	Stack   []*Frame
	Creator *Frame
}

Goroutine represents a single goroutine.

func Get

func Get(ignore ...string) ([]*Goroutine, error)

Get gets a set of currently running goroutines and parses them into a structured representation. Any goroutines that match the ignore list are ignored.

func Parse

func Parse(buf []byte, ignore ...string) ([]*Goroutine, error)

Parse parses a stack trace into a structure representation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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