profile

package
v0.0.0-...-42a42c3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// pipeline output
	Out chan models.Event

	// cuckoo filter for if the event is present in the profile
	EventFilter *cf.CuckooFilter
	// tracks when profiling started so the application can be added to the IsProfiledFilter
	IsProfiling *lru.Cache
	// tracks if the application/image/whatever has been profiled
	IsProfiled *lru.Cache

	ProfileBuildingDuration time.Duration
	// contains filtered or unexported fields
}

Engine stores engine state

func NewProfileEngine

func NewProfileEngine(ctx context.Context, c config.Config) Engine

NewProfileEngine returns engine with configs loaded

func (*Engine) AnalyzeFromPipeline

func (engine *Engine) AnalyzeFromPipeline(in chan models.Event)

AnalyzeFromPipeline initiates the engine on the pipeline

Jump to

Keyboard shortcuts

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