-
Notifications
You must be signed in to change notification settings - Fork 15
feat(profiling): FallibleStringWriter #1403
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1403 +/- ##
==========================================
+ Coverage 71.16% 71.20% +0.03%
==========================================
Files 403 404 +1
Lines 64368 64480 +112
==========================================
+ Hits 45810 45913 +103
- Misses 18558 18567 +9
🚀 New features to boost your workflow:
|
BenchmarksComparisonBenchmark execution time: 2025-12-15 14:03:45 Comparing candidate commit 73c675b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 57 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
Group 18
Group 19
BaselineOmitted due to size. |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
r1viollet
left a comment
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
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
Adds
FallibleStringWriterwhich allows you towrite!()and actually handle OOM conditions. The std implementation for String'sfmt::Writewill panic on OOM, despite the trait havingResultas a return type.Motivation
This will be used in an upcoming PR for
libdd-profiling-ffi. That PR was too large, so I split this out.Additional Notes
This is purely additions, no changes to existing functionality.
Expect more PRs :)
How to test the change?
Run test suites as normal, it adds nothing special.