Documentation ¶
Index ¶
- type CollectionType
- type Collector
- type Config
- type FSStorageConfig
- type LogType
- type Option
- func CollectionMode(mode CollectionType) Option
- func LogMode(mode LogType) Option
- func WithBlockProfile(d time.Duration) Option
- func WithCPUProfile(d time.Duration) Option
- func WithGoroutineProfile() Option
- func WithMemProfile() Option
- func WithStorageConf(sc StorageConfig) Option
- func WithTickInterval(t time.Duration) Option
- type ProfileConfig
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionType ¶
type CollectionType int
const ( CollectionSerial CollectionType = iota CollectionConcurrent )
type Config ¶
type Config struct { Quiet bool CollectionType CollectionType // contains filtered or unexported fields }
type FSStorageConfig ¶
type FSStorageConfig struct {
Dir string
}
type Option ¶
type Option func(c *Collector)
func CollectionMode ¶
func CollectionMode(mode CollectionType) Option
func WithBlockProfile ¶
func WithCPUProfile ¶
func WithGoroutineProfile ¶
func WithGoroutineProfile() Option
func WithMemProfile ¶
func WithMemProfile() Option
func WithStorageConf ¶
func WithStorageConf(sc StorageConfig) Option
func WithTickInterval ¶
type ProfileConfig ¶
type ProfileConfig struct {
// contains filtered or unexported fields
}
type StorageConfig ¶
type StorageConfig struct {
FSStorageConfig FSStorageConfig
}
Click to show internal directories.
Click to hide internal directories.