Skip to content

Commit

Permalink
kvmprofiler with io measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
cha87de committed Nov 21, 2018
1 parent 457c7be commit b32a975
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions profiler/pickup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ func pickupCPU(domain models.Domain) int {
}

func pickupIO(domain models.Domain) int {
// TODO
return 0
readBytes, _ := strconv.Atoi(collectors.GetMetricDiffUint64(domain.Measurable, "io_read_bytes", true))
writtenbytes, _ := strconv.Atoi(collectors.GetMetricDiffUint64(domain.Measurable, "io_write_bytes", true))
total := readBytes + writtenbytes
return total
}

func pickupNet(domain models.Domain) int {
Expand Down

0 comments on commit b32a975

Please sign in to comment.