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

macOS ARM - incorrect process CPU times #79

Open
andrewkroh opened this issue Mar 21, 2023 · 0 comments
Open

macOS ARM - incorrect process CPU times #79

andrewkroh opened this issue Mar 21, 2023 · 0 comments
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team

Comments

@andrewkroh
Copy link
Member

Based on similar code in other projects it looks like the process CPU times may not be scaled correctly on Apple M1 / M2 hardware (and are off by a factor of 125/3).

status.CPU.User.Ticks = opt.UintWith(uint64(info.ptinfo.pti_total_user) / uint64(time.Millisecond))
status.CPU.System.Ticks = opt.UintWith(uint64(info.ptinfo.pti_total_system) / uint64(time.Millisecond))

Related:

@andrewkroh andrewkroh added the bug Something isn't working label Mar 21, 2023
@jlind23 jlind23 added the Team:Elastic-Agent Label for the Agent team label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

2 participants