-
Couldn't load subscription status.
- Fork 22
Add GetPerformanceInfo #38
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
base: main
Are you sure you want to change the base?
Conversation
2bc2675 to
4d46e16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me, just minor requests.
|
relies on #39 |
6ddab40 to
0f132ac
Compare
| // https://learn.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getperformanceinfo | ||
| func GetPerformanceInfo() (PerformanceInformation, error) { | ||
| var pi PerformanceInformation | ||
| pi.CB = uint32(unsafe.Sizeof(pi)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CB usages need updated to cb.
Add GetPerformanceInfo
and update (fool me once, shame on you, fool me twice shame on me) readme to mention that syscalls are generated with go generate and a comment