Documentation ¶
Overview ¶
Package hrlog writes high resolution tracing logs.
Index ¶
Constants ¶
View Source
const Role = "HRLOG"
Role is writer thread role name.
Variables ¶
View Source
var ( ErrDisabled = errors.New("hrlog module disabled") ErrQueueFull = errors.New("too many pending tasks") ErrWriter = errors.New("writer failed") )
Error conditions.
View Source
var ( // GqlLCore is the LCore used for writer created via GraphQL. GqlLCore eal.LCore )
View Source
var (
GqlWriterType *gqlserver.NodeType[*Writer]
)
GraphQL types.
Functions ¶
Types ¶
type Writer ¶
type Writer struct { ealthread.ThreadWithCtrl // contains filtered or unexported fields }
Writer is a hrlog writer thread.
var TheWriter *Writer
TheWriter is the current Writer instance.
func NewWriter ¶
func NewWriter(cfg WriterConfig) (w *Writer, e error)
NewWriter creates a hrlog writer thread.
func (Writer) ThreadRole ¶
ThreadRole implements ealthread.ThreadWithRole interface.
type WriterConfig ¶
type WriterConfig struct { Filename string Count int RingCapacity int Socket eal.NumaSocket }
WriterConfig contains writer configuration.
Directories ¶
Path | Synopsis |
---|---|
Package hrlogreader reads high resolution tracing logs.
|
Package hrlogreader reads high resolution tracing logs. |
Click to show internal directories.
Click to hide internal directories.