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

fix(client): diagnostics #377

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Conversation

matoous
Copy link
Contributor

@matoous matoous commented Dec 15, 2024

Bevy diagnostics (measurements) should only record the change in the value since the last time the measurements were collected. Not the life-time total to my understanding. Using current implementation with bevy's LogDiagnosticsPlugin results in logs such as:

2024-12-15T21:42:03.238223Z  INFO bevy diagnostic: client/replication/components_changed: 14058.416209 components changed (avg 14005.266667 components changed)

with ever-increasing number.

Bevy diagnostics (measurements) should only record the change in
the value since lass time the measurements were collected.
_Not_ the life-time total.
Copy link
Contributor

@Shatur Shatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you update the changelog?

@matoous
Copy link
Contributor Author

matoous commented Dec 16, 2024

@Shatur will do, plus I see that it needs fixing, I somehow managed to miss that stats are hidden behind a feature when running check/test.

@Shatur Shatur requested a review from UkoeHB December 16, 2024 09:15
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.22%. Comparing base (6b9bd43) to head (20c37b9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #377      +/-   ##
==========================================
+ Coverage   90.20%   90.22%   +0.02%     
==========================================
  Files          46       46              
  Lines        2563     2569       +6     
==========================================
+ Hits         2312     2318       +6     
  Misses        251      251              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Shatur Shatur merged commit 3692955 into projectharmonia:master Dec 16, 2024
7 checks passed
@Shatur
Copy link
Contributor

Shatur commented Dec 16, 2024

I will draft a new patch release this evening.

@Shatur
Copy link
Contributor

Shatur commented Dec 16, 2024

@matoous the release is up!

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.

3 participants