The all-in-on perf class for thread. More...
#include <Utils/ThreadPerf.h>

Public Member Functions | |
| ThreadPerf (int cpu) | |
| To start perf this thread at specific cpu, with default perf events. More... | |
| ThreadPerf (int cpu, vector< PerfPair > customPair) | |
| To start perf this thread at specific cpu, with customized perf events. More... | |
| void | start () |
| start all registered perf More... | |
| uint64_t | getResultById (int idx) |
| Get the perf result by event id. More... | |
| uint64_t | getResultByName (string name) |
| Get the perf result by event tag string. More... | |
| void | end () |
| end all registered perf More... | |
| string | headStringPrintf (void) |
| get the head string for print a result sheet More... | |
| string | headStringCsv (void) |
| get the head string for csv file of a result sheet More... | |
| string | resultStringPrintf (void) |
| get the result string for print a result sheet More... | |
| string | resultStringCsv (void) |
| get the result string for csv file a result sheet More... | |
Protected Member Functions | |
| string | getChValueAsString (size_t idx) |
| uint64_t | getRunTime (void) |
Protected Attributes | |
| PerfToolPtr | myTool |
| vector< PerfPair > | pairs |
| struct timeval ts | te |
| uint64_t | latency |
The all-in-on perf class for thread.