perf_counter: add perf_print_counter_buffer & perf_iterate_all

These can be used to print the perf counters to a buffer.
This commit is contained in:
Beat Küng
2017-04-01 20:19:52 +02:00
committed by Lorenz Meier
parent 446c734edc
commit e75f5a4642
3 changed files with 102 additions and 0 deletions
+10
View File
@@ -144,6 +144,16 @@ void perf_print_counter_fd(int fd, perf_counter_t handle)
}
int perf_print_counter_buffer(char *buffer, int length, perf_counter_t handle)
{
return 0;
}
void perf_iterate_all(perf_callback cb, void *user)
{
}
/**
* Print all of the performance counters.
*