Skip to content
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

feat(prof): add 'tracing' features #3094

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

morrisonlevi
Copy link
Collaborator

@morrisonlevi morrisonlevi commented Feb 18, 2025

Description

This adds the tracing and tracing-subscriber features to the profiler. Enabling tracing-subscriber requires tracing. These are not meant to be enabled for customer builds at this time. The goal is to use this data to enable benchmarking and other useful tools during development. Currently it's configured by the RUST_LOG env var (when built with the feature, of course).

We may want to move some of our logging of the PHP lifecycle to use this in the future.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.74%. Comparing base (445f72a) to head (8c510e2).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3094   +/-   ##
=========================================
  Coverage     74.74%   74.74%           
  Complexity     2791     2791           
=========================================
  Files           112      112           
  Lines         11044    11044           
=========================================
  Hits           8255     8255           
  Misses         2789     2789           
Flag Coverage Δ
tracer-php 74.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 445f72a...8c510e2. Read the comment docs.

This adds tracing features to the profiler. These are not meant to
be enabled for customer builds at this time. The goal is to use this
data to enable benchmarking and other useful tools during development.

Currently it's turned on by the RUST_LOG env var.

We may want to move some of our logging of the PHP lifecycle to use
this in the future.
@morrisonlevi morrisonlevi force-pushed the levi/tracing-subscriber branch from 6412563 to 3c7d8c7 Compare February 19, 2025 16:45
@pr-commenter
Copy link

pr-commenter bot commented Feb 19, 2025

Benchmarks [ profiler ]

Benchmark execution time: 2025-02-19 20:30:38

Comparing candidate commit 8c510e2 in PR branch levi/tracing-subscriber with baseline commit 445f72a in branch master.

Found 0 performance improvements and 2 performance regressions! Performance is the same for 27 metrics, 7 unstable metrics.

scenario:walk_stack/50

  • 🟥 wall_time [+717.318ns; +728.193ns] or [+4.722%; +4.793%]

scenario:walk_stack/99

  • 🟥 wall_time [+719.490ns; +722.815ns] or [+4.748%; +4.770%]

@morrisonlevi morrisonlevi force-pushed the levi/tracing-subscriber branch from e147475 to 8c510e2 Compare February 19, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants