MCPcopy Create free account
hub / github.com/apache/impala / GetTCMallocProperty

Function GetTCMallocProperty

be/src/kudu/util/process_memory.cc:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127// ------------------------------------------------------------
128#ifdef TCMALLOC_ENABLED
129static int64_t GetTCMallocProperty(const char* prop) {
130 size_t value;
131 if (!MallocExtension::instance()->GetNumericProperty(prop, &value)) {
132 LOG(DFATAL) << "Failed to get tcmalloc property " << prop;
133 }
134 return value;
135}
136
137int64_t GetTCMallocCurrentAllocatedBytes() {
138 return GetTCMallocProperty("generic.current_allocated_bytes");

Callers 2

GcTcmallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected