Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
perf-counters.cc File Reference
#include "util/perf-counters.h"
#include "util/debug-util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <sys/syscall.h>
#include <linux/perf_event.h>
#include "common/names.h"
Include dependency graph for perf-counters.cc:

Go to the source code of this file.

Namespaces

 impala
 This file contains type definitions that are used throughout the code base.
 

Macros

#define COUNTER_SIZE   (sizeof(void*))
 
#define BUFFER_SIZE   256
 
#define PRETTY_PRINT_WIDTH   13
 

Enumerations

enum  impala::PERF_IO_IDX {
  impala::PROC_IO_READ = 0, impala::PROC_IO_WRITE, impala::PROC_IO_SYS_RREAD, impala::PROC_IO_SYS_WRITE,
  impala::PROC_IO_DISK_READ, impala::PROC_IO_DISK_WRITE, impala::PROC_IO_CANCELLED_WRITE, impala::PROC_IO_LAST_COUNTER
}
 

Functions

static int impala::sys_perf_event_open (struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags)
 
static bool impala::InitEventAttr (perf_event_attr *attr, PerfCounters::Counter counter)
 
static string impala::GetCounterName (PerfCounters::Counter counter)
 

Macro Definition Documentation

#define BUFFER_SIZE   256

Definition at line 34 of file perf-counters.cc.

Referenced by impala::GrowingTest::Test().

#define COUNTER_SIZE   (sizeof(void*))

Definition at line 33 of file perf-counters.cc.

Referenced by impala::PerfCounters::GetSysCounters().

#define PRETTY_PRINT_WIDTH   13

Definition at line 35 of file perf-counters.cc.

Referenced by impala::PerfCounters::PrettyPrint().