Skip to content

Commit

Permalink
update pe utlization api (#7)
Browse files Browse the repository at this point in the history
* update header for pe utilization

Signed-off-by: bg-furiosa <[email protected]>

* update pe utilization api

Signed-off-by: bg-furiosa <[email protected]>

---------

Signed-off-by: bg-furiosa <[email protected]>
  • Loading branch information
bg-furiosa authored Sep 18, 2024
1 parent ddee2a6 commit acc501b
Show file tree
Hide file tree
Showing 9 changed files with 210 additions and 69 deletions.
2 changes: 1 addition & 1 deletion example/device_lister/device_lister.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func main() {
fmt.Printf("Device Utilization:\n")
for _, peUtilization := range utilization.PeUtilization() {
fmt.Printf(" PE Utilization:\n")
fmt.Printf(" Cores: %v\n", peUtilization.Cores())
fmt.Printf(" Core: %v\n", peUtilization.Core())
fmt.Printf(" Time Window Mill: %d\n", peUtilization.TimeWindowMill())
fmt.Printf(" PE Usage Percentage: %f\n", peUtilization.PeUsagePercentage())
}
Expand Down
16 changes: 8 additions & 8 deletions pkg/smi/binding/const.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions pkg/smi/binding/zz_binding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/smi/binding/zz_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit acc501b

Please sign in to comment.