Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcmuller
Copy link
Contributor

@jcmuller jcmuller commented Jun 12, 2025

Most of the projects I am using process compose with have upwards of 10 processes. Having each instance of process compose take about 1 CPU just for management isn't scalable, alas, since I need to have 2 or 3 projects running concurrently for development. This PR makes optional being able to disable the accurate metrics gathering.

resolve #341

Copy link
Owner

@F1bonacc1 F1bonacc1 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @jcmuller!

The code looks good, and I don't have any issues with it.
There are 2 things that I would like to ask you to change:

  1. Make it the default behavior, I think that the impact of recursive measuring was mostly negative, and I would like to make it an opt-in rather than the default.
  2. Can we rename it from bad to something like withRecursiveMetrics (default false)?

WDYT?

@F1bonacc1 F1bonacc1 mentioned this pull request Jul 5, 2025
3 tasks
@jcmuller
Copy link
Contributor Author

jcmuller commented Jul 5, 2025

Done and done! I have left a second commit renaming it, but can rebase it out of existance.

Copy link
Owner

@F1bonacc1 F1bonacc1 left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks!
Please squash, and it's ready to merge.

@jcmuller jcmuller changed the title feat: provide option to disable recursive metric gathering feat: default to imprecise metrics and provide option to enable them Jul 15, 2025
@jcmuller
Copy link
Contributor Author

Done!

@sonarqubecloud
Copy link

@F1bonacc1
Copy link
Owner

Awesome! Thanks!

@F1bonacc1 F1bonacc1 merged commit bad54b4 into F1bonacc1:main Jul 15, 2025
6 checks passed
@jcmuller jcmuller deleted the optionally-show-bad-metrics branch July 16, 2025 13:08
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.

High CPU usage since v1.63.0

2 participants