cmd/geth, metrics: separate process metric collection, add disk

This commit is contained in:
Péter Szilágyi
2015-06-27 18:12:58 +03:00
committed by Jeffrey Wilcke
parent 7c4ed8055c
commit 2aeeb72fa5
5 changed files with 130 additions and 22 deletions

9
metrics/disk.go Normal file
View File

@ -0,0 +1,9 @@
package metrics
// DiskStats is the per process disk io stats.
type DiskStats struct {
ReadCount int64 // Number of read operations executed
ReadBytes int64 // Total number of bytes read
WriteCount int64 // Number of write operations executed
WriteBytes int64 // Total number of byte written
}