Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExecutableCacheLifetime = 1 * time.Hour FramesCacheLifetime = 1 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pdata ¶
type Pdata struct { // Executables stores metadata for executables. Executables *lru.SyncedLRU[libpf.FileID, samples.ExecInfo] // Frames maps frame information to its source location. Frames *lru.SyncedLRU[ libpf.FileID, *xsync.RWMutex[map[libpf.AddressOrLineno]samples.SourceInfo], ] // ExtraSampleAttrProd is an optional hook point for adding custom // attributes to samples. ExtraSampleAttrProd samples.SampleAttrProducer // contains filtered or unexported fields }
Pdata holds the cache for the data used to generate the events reporters will export when handling OTLP data.
func (Pdata) Generate ¶
func (p Pdata) Generate(events map[samples.TraceAndMetaKey]*samples.TraceEvents) pprofile.Profiles
Generate generates a pdata request out of internal profiles data, to be exported.
Click to show internal directories.
Click to hide internal directories.