Documentation ¶ Index ¶ func CPUUsage(b []byte) (float64, error) type NotCPUProfile func (n NotCPUProfile) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CPUUsage ¶ func CPUUsage(b []byte) (float64, error) CPUUsage takes in a byte array of a GZip-encoded .proto file of a golang runtime CPU Profile and returns the total CPU usage as a float: 1.0 is 100% of 1 core being used Types ¶ type NotCPUProfile ¶ type NotCPUProfile struct { // contains filtered or unexported fields } func (NotCPUProfile) Error ¶ func (n NotCPUProfile) Error() string Source Files ¶ View all Source files profile.go Click to show internal directories. Click to hide internal directories.