16 #ifndef IMPALA_UTIL_PERF_COUNTER_H
17 #define IMPALA_UTIL_PERF_COUNTER_H
83 const std::vector<int64_t>*
counters(
int snapshot)
const;
bool InitSysCounter(Counter counter)
std::string proc_status_field
For PROC_SELF_STATUS. Field name for counter.
bool InitProcSelfIOCounter(Counter counter)
bool GetProcSelfIOCounters(std::vector< int64_t > &snapshot)
std::vector< std::vector< int64_t > > snapshots_
void PrettyPrint(std::ostream *out) const
Prints out the names and results for all snapshots to 'out'.
bool InitProcSelfStatusCounter(Counter counter)
bool GetProcSelfStatusCounters(std::vector< int64_t > &snapshot)
int fd
For SYS_PERF_COUNTER. File descriptor where the counter value is stored.
std::vector< std::string > counter_names_
bool GetSysCounters(std::vector< int64_t > &snapshot)
std::vector< std::string > snapshot_names_
int proc_io_line_number
For PROC_SELF_IO. Line number from /proc/self/io file with this counter's value.
void Snapshot(const std::string &name="")
PerfCounters & operator=(const PerfCounters &)
const std::vector< std::string > * counter_names() const
Returns readable names for the added counters.
std::vector< CounterData > counters_
bool AddDefaultCounters()
const std::vector< int64_t > * counters(int snapshot) const
Returns the results of that snapshot.