Skip to content

feat: default to imprecise metrics and provide option to enable them#352

Merged
F1bonacc1 merged 2 commits into
F1bonacc1:mainfrom
jcmuller:optionally-show-bad-metrics
Jul 15, 2025
Merged

feat: default to imprecise metrics and provide option to enable them#352
F1bonacc1 merged 2 commits into
F1bonacc1:mainfrom
jcmuller:optionally-show-bad-metrics

Conversation

@jcmuller

@jcmuller jcmuller commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

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

@F1bonacc1 F1bonacc1 left a comment

Copy link
Copy Markdown
Owner

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

jcmuller commented Jul 5, 2025

Copy link
Copy Markdown
Contributor Author

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

@F1bonacc1 F1bonacc1 left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
Contributor Author

Done!

@sonarqubecloud

Copy link
Copy Markdown

@F1bonacc1

Copy link
Copy Markdown
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