-
Notifications
You must be signed in to change notification settings - Fork 126
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
DomainGetCPUStats param #92
Comments
I'm not sure what you're asking here. If you're looking for help decoding the returned TypedParams, check in libvirt.go, there are some examples there that show how it's done. The returned rNparams value is redundant - |
Nparams ,StartCPU,TypedParameterFlags |
I don’t understand the meaning of these three parameters。 |
Your best resource for that question is the libvirt documentation for this function, which is here: https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetCPUStats |
|
return: |
How does the data returned by the interface help me calculate CPU usage? |
You must take two measurements. |
// DomainGetCPUStats is the go wrapper for REMOTE_PROC_DOMAIN_GET_CPU_STATS.
func (l *Libvirt) DomainGetCPUStats(Dom Domain, Nparams uint32, StartCPU int32, Ncpus uint32, Flags TypedParameterFlags) (rParams []TypedParam, rNparams int32, err error) {
}
Nparams ,StartCPU,TypedParameterFlags
How to finish the above three parameters?
And What can I get back? rParams ,rNparams
The text was updated successfully, but these errors were encountered: