Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ type FlagsOTLP struct {
// FlagsProfiling provides profiling configuration flags.
type FlagsProfiling struct {
Duration time.Duration `default:"5s" help:"The agent profiling duration to use. Leave this empty to use the defaults."`
LabelTTL time.Duration `default:"10m" help:"The interval at which the agent will refresh the labels of a tid."`
CPUSamplingFrequency int `default:"${default_cpu_sampling_frequency}" help:"The frequency at which profiling data is collected, e.g., 19 samples per second."`

PerfEventBufferPollInterval time.Duration `default:"250ms" help:"[deprecated] The interval at which the perf event buffer is polled for new events."`
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ func mainWithExitCode() flags.ExitCode {
debuginfoClient,
externalLabels,
f.Profiling.Duration,
f.Profiling.LabelTTL,
f.Debuginfo.Strip,
f.Debuginfo.UploadMaxParallel,
f.Debuginfo.UploadDisable || isOfflineMode,
Expand Down
2 changes: 2 additions & 0 deletions reporter/parca_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func New(
debuginfoClient debuginfogrpc.DebuginfoServiceClient,
externalLabels []Label,
reportInterval time.Duration,
labelTTL time.Duration,
stripTextSection bool,
symbolUploadConcurrency int,
disableSymbolUpload bool,
Expand All @@ -543,6 +544,7 @@ func New(
if err != nil {
return nil, err
}
labels.SetLifetime(labelTTL)

stacks, err := lru.NewSynced[libpf.TraceHash, stack](cacheSize, libpf.TraceHash.Hash32)
if err != nil {
Expand Down