DataDog / dd-trace-py

Datadog Python APM Client
https://ddtrace.readthedocs.io/
Other
542 stars 411 forks source link

fix(profiling): add debug asserts for our assumption on the stack frame #9672

Closed taegyunkim closed 3 months ago

taegyunkim commented 3 months ago

As suggested in https://github.com/DataDog/dd-trace-py/pull/9615#discussion_r1655438132

Checklist

Reviewer Checklist

datadog-dd-trace-py-rkomorn[bot] commented 3 months ago

Datadog Report

Branch report: taegyunkim/lock-asserts Commit report: 1a42a60 Test service: dd-trace-py

:white_check_mark: 0 Failed, 175319 Passed, 1179 Skipped, 11h 29m 53.36s Total duration (27m 16.57s time saved) :snowflake: 1 New Flaky

New Flaky Tests (1)

pr-commenter[bot] commented 3 months ago

Benchmarks

Benchmark execution time: 2024-07-01 17:58:12

Comparing candidate commit 1a42a6090efedb5b324f82f67fff1f4f7bcee76d in PR branch taegyunkim/lock-asserts with baseline commit 9c9b5a7e9d5977438cb98a6d86cf00b23f7fa3ff in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 221 metrics, 9 unstable metrics.

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 60 lines in your changes missing coverage. Please review.

Project coverage is 27.23%. Comparing base (4acfde7) to head (6f18866). Report is 13 commits behind head on main.

:exclamation: Current head 6f18866 differs from pull request most recent head 1a42a60

Please upload reports for the commit 1a42a60 to get more accurate results.

Files Patch % Lines
tests/profiling/collector/test_threading.py 0.00% 49 Missing :warning:
ddtrace/profiling/collector/_lock.py 0.00% 10 Missing :warning:
ddtrace/settings/profiling.py 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #9672 +/- ## =========================================== - Coverage 74.65% 27.23% -47.42% =========================================== Files 1381 1370 -11 Lines 127965 127928 -37 =========================================== - Hits 95531 34843 -60688 - Misses 32434 93085 +60651 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

taegyunkim commented 3 months ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @taegyunkim and the rest of your teammates on Graphite Graphite

taegyunkim commented 3 months ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @taegyunkim and the rest of your teammates on Graphite Graphite

taegyunkim commented 3 months ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @taegyunkim and the rest of your teammates on Graphite Graphite