Skip to content

[Profiler] Do not compute a default output path for pprof files#2671

Merged
gleocadie merged 4 commits into
masterfrom
gleocadie/fix-pprof-file-saving-on-disk
Apr 12, 2022
Merged

[Profiler] Do not compute a default output path for pprof files#2671
gleocadie merged 4 commits into
masterfrom
gleocadie/fix-pprof-file-saving-on-disk

Conversation

@gleocadie

@gleocadie gleocadie commented Apr 11, 2022

Copy link
Copy Markdown
Collaborator

Summary of changes

If the environment variable is not set, do not create a default output path for pprof files.

Reason for change

Writting pprof files on disk is only for debugging/development purpose. So by default, there is no need to write them on disk (so no need to compute a default output path).

Implementation details

Remove the computation of the default output path if the env var is not set.

  • rename the env var into DD_INTERNAL_PROFILING_OUTPUT_DIR since it's an internal flag.

Test coverage

Other details

If the environment variable is not set, do not compute an output path
for pprof files.
+ since it's an internal env var, just rename it into DD_INTERNAL_XXXX
@gleocadie
gleocadie requested a review from a team as a code owner April 11, 2022 22:31
@gleocadie gleocadie added the area:profiler Issues related to the continous-profiler label Apr 11, 2022
@gleocadie
gleocadie force-pushed the gleocadie/fix-pprof-file-saving-on-disk branch from 03106c8 to 0fd542f Compare April 12, 2022 09:00
Comment thread profiler/test/Datadog.Profiler.Native.Tests/ConfigurationTest.cpp
@gleocadie
gleocadie force-pushed the gleocadie/fix-pprof-file-saving-on-disk branch from 0fd542f to 306240a Compare April 12, 2022 12:49

@chrisnas chrisnas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gleocadie
gleocadie merged commit 543a79f into master Apr 12, 2022
@gleocadie
gleocadie deleted the gleocadie/fix-pprof-file-saving-on-disk branch April 12, 2022 22:09
@github-actions github-actions Bot added this to the vNext milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants