Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecorderNotInitialized = errors.New("flight recorder not initialized") ErrRecorderNotStarted = errors.New("flight recorder not started") ErrCreateDumpPath = errors.New("failed to create dump path") ErrCreateDumpFile = errors.New("failed to create dump file") ErrWriteDump = errors.New("failed to write flight dump") ErrStartRecorder = errors.New("failed to start flight recorder") )
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder manages Go's Flight Recorder lifecycle and dump rotation.
func (*Recorder) DumpToFile ¶
DumpToFile writes the flight recorder buffer into a file under dumpPath.
func (*Recorder) DumpToFileAsync ¶
DumpToFileAsync runs DumpToFile asynchronously.
Click to show internal directories.
Click to hide internal directories.