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

App with high energy usage doesn't show anything? #24

Open
ectv96 opened this issue Jan 17, 2024 · 7 comments
Open

App with high energy usage doesn't show anything? #24

ectv96 opened this issue Jan 17, 2024 · 7 comments

Comments

@ectv96
Copy link

ectv96 commented Jan 17, 2024

I have turned on the option, and lower to the lowest threshold, and still showing nothing.
on the macOS battery dock, it shows several apps that has high energy usage.

Macbook Air M2

@rurza
Copy link
Owner

rurza commented Jan 17, 2024

Hm... I wasn't using this functionality for some time. It uses private APIs behind the scene so there are 2 options:

  • regression
  • macOS update broke it

I will take a look at it today :)

@rurza
Copy link
Owner

rurza commented Jan 17, 2024

@ectv96
Hello! After double-checking on my personal machine, I couldn't reproduce the issue. I will continue to monitor it. Could a restart of your Mac help? Also, is your machine managed by IT (e.g., through MDM or similar)?

@squishycat92
Copy link

The reason for this is probably because the lowest threshold for BatFi (energy impact of 200) is significantly lower than the default macOS Battery menu's threshold. I'm not sure how macOS determines whether or not an app is using significant energy, but for example, when Safari is using 87.1, it shows up in the stock Battery menu. However, since the impact is <200, it does not show in BatFi.

Maybe it would be possible to lower the threshold further to whatever macOS considers using significant energy?

@rurza
Copy link
Owner

rurza commented Jan 18, 2024

Absolutely, that's not it, but I appreciate the suggestion. :)
On my work machine, even when I compile a rather sizable Swift project (one that takes a few minutes on the M2 Max), the list is empty. For now, my strategy is to enhance the logging in the latest beta, and I aim to deduce the issue solely from the logs.
Additionally, on my private M3 Max where I can't reproduce the problem, compiling NepTunes.app almost instantly reveals the spike.

Zrzut ekranu 2024-01-18 o 22 15 37

@rurza
Copy link
Owner

rurza commented Jan 18, 2024

I mean I can lower the threshold, but it won't solve the problem – apparently sometimes it just doesn't work at all :(

@decodism
Copy link
Contributor

For me, it works with debug builds but not with release builds. I don't understand why, but by messing with the duration parameter, I can get it to work. For example:

systemstats_get_top_coalitions(Int(duration + 0), 10000)

@rurza Can you reproduce it?

@rurza
Copy link
Owner

rurza commented Jan 19, 2024

@decodism Lol, yes :)

Screenshot 2024-01-19 at 09 32 51

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

No branches or pull requests

4 participants