Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::TcmallocMetric Class Reference

Specialised metric which exposes numeric properties from tcmalloc. More...

#include <memory-metrics.h>

Inheritance diagram for impala::TcmallocMetric:
Collaboration diagram for impala::TcmallocMetric:

Classes

class  PhysicalBytesMetric
 

Public Member Functions

 TcmallocMetric (const std::string &key, const std::string &tcmalloc_var)
 

Static Public Attributes

static TcmallocMetricBYTES_IN_USE = NULL
 Number of bytes allocated by tcmalloc, currently used by the application. More...
 
static TcmallocMetricTOTAL_BYTES_RESERVED = NULL
 
static TcmallocMetricPAGEHEAP_FREE_BYTES = NULL
 
static TcmallocMetricPAGEHEAP_UNMAPPED_BYTES = NULL
 
static PhysicalBytesMetricPHYSICAL_BYTES_RESERVED = NULL
 

Private Member Functions

virtual void CalculateValue ()
 

Private Attributes

const std::string tcmalloc_var_
 Name of the tcmalloc property this metric should fetch. More...
 

Detailed Description

Specialised metric which exposes numeric properties from tcmalloc.

Definition at line 32 of file memory-metrics.h.

Constructor & Destructor Documentation

impala::TcmallocMetric::TcmallocMetric ( const std::string &  key,
const std::string &  tcmalloc_var 
)
inline

Definition at line 68 of file memory-metrics.h.

Member Function Documentation

virtual void impala::TcmallocMetric::CalculateValue ( )
inlineprivatevirtual

Definition at line 75 of file memory-metrics.h.

References tcmalloc_var_.

Member Data Documentation

TcmallocMetric * TcmallocMetric::BYTES_IN_USE = NULL
static

Number of bytes allocated by tcmalloc, currently used by the application.

Definition at line 35 of file memory-metrics.h.

Referenced by impala::RegisterMemoryMetrics().

TcmallocMetric * TcmallocMetric::PAGEHEAP_FREE_BYTES = NULL
static

Number of bytes reserved and still mapped by tcmalloc that are not allocated to the application.

Definition at line 45 of file memory-metrics.h.

Referenced by impala::RegisterMemoryMetrics().

TcmallocMetric * TcmallocMetric::PAGEHEAP_UNMAPPED_BYTES = NULL
static

Number of bytes once reserved by tcmalloc, but released back to the operating system so that their use incurs a pagefault. Contributes to the total amount of virtual address space used, but not to the physical memory usage.

Definition at line 50 of file memory-metrics.h.

Referenced by impala::TcmallocMetric::PhysicalBytesMetric::CalculateValue(), and impala::RegisterMemoryMetrics().

TcmallocMetric::PhysicalBytesMetric * TcmallocMetric::PHYSICAL_BYTES_RESERVED = NULL
static
const std::string impala::TcmallocMetric::tcmalloc_var_
private

Name of the tcmalloc property this metric should fetch.

Definition at line 73 of file memory-metrics.h.

Referenced by CalculateValue().

TcmallocMetric * TcmallocMetric::TOTAL_BYTES_RESERVED = NULL
static

Number of bytes of system memory reserved by tcmalloc, including that in use by the application. Does not include what tcmalloc accounts for as 'malloc metadata' in /memz. That is, this is memory reserved by tcmalloc that the application can use. Includes unmapped virtual memory.

Definition at line 41 of file memory-metrics.h.

Referenced by impala::TcmallocMetric::PhysicalBytesMetric::CalculateValue(), and impala::RegisterMemoryMetrics().


The documentation for this class was generated from the following files: