-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config tests for OOM heap profiler #2943
Conversation
Overall package sizeSelf size: 3.98 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report
@@ Coverage Diff @@
## master #2943 +/- ##
==========================================
+ Coverage 87.36% 88.67% +1.30%
==========================================
Files 325 298 -27
Lines 11585 10885 -700
Branches 33 33
==========================================
- Hits 10121 9652 -469
+ Misses 1464 1233 -231
... and 32 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than a minor correction in test naming. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just that question about duplicate strategy values.
enabled: true, | ||
heapLimitExtensionSize: 1000000, | ||
maxHeapExtensionCount: 2, | ||
exportStrategies: ['process', 'interrupt', 'async', 'interrupt'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume pass-through of duplicate values is a desired feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice suggestion, I will add de-duplication of strategies
* Use isTrue in profiling config * Add OOM heap profiler config tests * Deduplicate OOM export strategies
* Use isTrue in profiling config * Add OOM heap profiler config tests * Deduplicate OOM export strategies
* Use isTrue in profiling config * Add OOM heap profiler config tests * Deduplicate OOM export strategies
* Use isTrue in profiling config * Add OOM heap profiler config tests * Deduplicate OOM export strategies
What does this PR do?
isTrue
in profiler configMotivation
More robust check for environment variable activation.
Fix activation of OOM heap profiler that before would have been activated by setting
DD_PROFILING_EXPERIMENTAL_OOM_MONITORING_ENABLED
to any value.