perfcounter: write time unit for all fields

This commit is contained in:
Thomas Gubler 2014-06-23 11:15:27 +02:00
parent a43918de8d
commit cfdbf2c5e9
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ perf_print_counter_fd(int fd, perf_counter_t handle)
case PC_ELAPSED: { case PC_ELAPSED: {
struct perf_ctr_elapsed *pce = (struct perf_ctr_elapsed *)handle; struct perf_ctr_elapsed *pce = (struct perf_ctr_elapsed *)handle;
dprintf(fd, "%s: %llu events, %lluus elapsed, %llu avg, min %lluus max %lluus\n", dprintf(fd, "%s: %llu events, %lluus elapsed, %lluus avg, min %lluus max %lluus\n",
handle->name, handle->name,
pce->event_count, pce->event_count,
pce->time_total, pce->time_total,
@ -314,7 +314,7 @@ perf_print_counter_fd(int fd, perf_counter_t handle)
case PC_INTERVAL: { case PC_INTERVAL: {
struct perf_ctr_interval *pci = (struct perf_ctr_interval *)handle; struct perf_ctr_interval *pci = (struct perf_ctr_interval *)handle;
dprintf(fd, "%s: %llu events, %llu avg, min %lluus max %lluus\n", dprintf(fd, "%s: %llu events, %lluus avg, min %lluus max %lluus\n",
handle->name, handle->name,
pci->event_count, pci->event_count,
(pci->time_last - pci->time_first) / pci->event_count, (pci->time_last - pci->time_first) / pci->event_count,