Skip to content

Conversation

@strawgate
Copy link
Contributor

@strawgate strawgate commented Aug 20, 2025

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

Copy link
Member

@andrewkroh andrewkroh left a 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.

@andrewkroh andrewkroh added the enhancement New feature or request label Aug 20, 2025
@andrewkroh andrewkroh changed the title Add getPerformanceInfo Add GetPerformanceInfo Aug 20, 2025
@strawgate
Copy link
Contributor Author

strawgate commented Aug 20, 2025

relies on #39

// 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))
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants