Documentation
¶
Index ¶
Constants ¶
View Source
const MissingSymbol = "[MISSING]"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkTopologyConfig ¶ added in v0.3.0
type OnCPUConfig ¶
type OnCPUConfig struct {
Period string `mapstructure:"dump_period"` // The duration of dump stack
}
type ProfileTaskRunner ¶
type ProfileTaskRunner interface {
// Init runner with profiling task and process
Init(task *ProfilingTask, processes []api.ProcessInterface) error
// Run profiling, if throw error or method finish means the profiling task finished
Run(ctx context.Context, notify ProfilingRunningSuccessNotify) error
// Stop the runner initiative, is typically used to specify the profiling duration
Stop() error
// FlushData means dump the exists profiling data and flush them to the backend protocol format
FlushData() ([]*v3.EBPFProfilingData, error)
}
ProfileTaskRunner is use to running different type of profiling task, such as on-cpu profiling task
type ProfilingRunningSuccessNotify ¶
type ProfilingRunningSuccessNotify func()
type ProfilingTask ¶
type ProfilingTask struct {
// TaskID of profiling task
TaskID string
// ProcessIDList of need to monitoring process
ProcessIDList []string
// UpdateTime of profiling task
UpdateTime int64
// StartTime of profiling task, when need to start to profiling
StartTime int64
// TriggerType of task
TriggerType TriggerType
// TargetType of task
TargetType TargetType
// MaxRunningDuration of task
MaxRunningDuration time.Duration
}
func ProfilingTaskFromCommand ¶
func ProfilingTaskFromCommand(command *v3.Command) (*ProfilingTask, error)
type Runner ¶ added in v0.2.0
func NewBaseRunner ¶ added in v0.2.0
func NewBaseRunner() *Runner
func (*Runner) GenerateProfilingData ¶ added in v0.2.0
type TargetType ¶
type TargetType string
const ( TargetTypeOnCPU TargetType = "ON_CPU" TargetTypeOffCPU TargetType = "OFF_CPU" TargetTypeNetworkTopology TargetType = "NETWORK" )
func ParseTargetType ¶
func ParseTargetType(err error, val string) (TargetType, error)
func (TargetType) InitTask ¶
func (t TargetType) InitTask(task *ProfilingTask, command *v3.Command) error
type TaskConfig ¶
type TaskConfig struct {
OnCPU *OnCPUConfig `mapstructure:"on_cpu"` // ON_CPU type of profiling task config
Network *NetworkTopologyConfig `mapstructure:"network"` // NETWORK type of profiling task config
}
type TriggerType ¶
type TriggerType string
const (
TriggerTypeFixedTime TriggerType = "FIXED_TIME"
)
func ParseTriggerType ¶
func ParseTriggerType(err error, val string) (TriggerType, error)
func (TriggerType) InitTask ¶
func (t TriggerType) InitTask(task *ProfilingTask, command *v3.Command) error
Click to show internal directories.
Click to hide internal directories.