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

Log battery discharge during scenario. #5

Closed
OlivierLi opened this issue Oct 30, 2020 · 1 comment
Closed

Log battery discharge during scenario. #5

OlivierLi opened this issue Oct 30, 2020 · 1 comment

Comments

@OlivierLi
Copy link
Owner

There should be a small standalone program that can be run next to the browser and logs the battery discharge.

This allows calculating how long the full battery would last if executing the scenario over and over.

If we only care about Chrome we could find a way to leverage the devtools protocol to query Power.Mac.BatteryDischarge.

If we want to compare to Safari it would be best to write a quick objc/swift program to do it. Optimally it would use something like Grand Central Dispatch to setup the sample collection to minimize the impact on the system.

@OlivierLi
Copy link
Owner Author

Completed.

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

1 participant