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

Reveal diagnostic information with a --verbose flag #87

Open
zimeg opened this issue Feb 3, 2024 · 0 comments
Open

Reveal diagnostic information with a --verbose flag #87

zimeg opened this issue Feb 3, 2024 · 0 comments
Labels
enhancement New feature or request semver:minor Changes of a minor version

Comments

@zimeg
Copy link
Owner

zimeg commented Feb 3, 2024

Summary

It can be hard to know when a command ends and measurements begin. Even harder to know how many attempts are being made. There's some other diagnostics that might be cool to log.

$ etime -v -p sleep 12
2024-02-03T21:30:05.10Z INFO [etime] Measuring device #123456
2024-02-03T21:30:05.00Z INFO [etime] Emporia is currently online
2024-02-03T21:30:05.20Z INFO [etime] Starting command "sleep 12"
2024-02-03T21:30:17.20Z INFO [etime] Finished command "sleep 12"
2024-02-03T21:30:17.40Z INFO [etime] Gathering energy results (#1)
2024-02-03T21:30:18.00Z INFO [etime] Collected energy results
2024-02-03T21:30:18.00Z INFO [etime] Retrieved first usage instant 2024-02-03T21:30:05.20
2024-02-03T21:30:18.00Z INFO [etime] Retrieved usage list [80.2, 79.8]
2024-02-03T21:30:18.00Z INFO [etime] Retrieved sureness score of 16.7%
2024-02-03T21:30:18.00Z INFO [etime] Gathering energy results (#2)
2024-02-03T21:30:18.60Z INFO [etime] Collected energy results
2024-02-03T21:30:18.60Z INFO [etime] Retrieved first usage instant 2024-02-03T21:30:05.20
2024-02-03T21:30:18.60Z INFO [etime] Retrieved usage list [80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0, 80.0]
2024-02-03T21:30:18.60Z INFO [etime] Retrieved sureness score of 100.0%
real 12.00
user 0.00
sys 0.00
joules 960.0
watts 80.00
sure 100.0%
@zimeg zimeg added enhancement New feature or request semver:minor Changes of a minor version labels Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver:minor Changes of a minor version
Projects
None yet
Development

No branches or pull requests

1 participant