Add CPU time to telemetry#6611
Closed
sebastianbergmann wants to merge 1 commit into
Closed
Conversation
API Surface ChangesIf any of the additions below are not intended as public API, mark them with New API SurfaceClasses
Methods
|
3aa3ca8 to
b49f697
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6611 +/- ##
============================================
+ Coverage 96.84% 96.86% +0.01%
- Complexity 8476 8510 +34
============================================
Files 861 863 +2
Lines 26126 26283 +157
============================================
+ Hits 25301 25458 +157
Misses 825 825 ☔ View full report in Codecov by Sentry. |
b49f697 to
cf4af52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every emitted event now carries CPU time information (user, system, and total) alongside wall-clock time, memory usage, and garbage collector status. This makes it possible to distinguish CPU-bound from I/O-bound test work, wall-clock time alone conflates the two.
The
Telemetryvalue object that is part of eachEventemitted now exposes user, system, and total CPU time, plus deltas since the test run started and since the previous event (mirroring how duration and memory usage are already exposed).The
<phpunit:resourceUsage>element of Open Test Reporting XML gains three new attributes (userCpuTime,systemCpuTime,cpuTime) for both test and test-suite entries. The schema is updated accordingly.JUnit XML and TeamCity output formats as well as other outputs are unchanged.