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

Function AddTCmallocOverview

be/src/util/memusage-path-handlers.cc:57–61  ·  view source on GitHub ↗

Adds the following malloc data structures to the rapidjson document. - Total inuse memory by application. - Free memory(thread, central and page heap), - Freelist of central cache, each class. - Page heap freelist.

Source from the content-addressed store, hash-verified

55/// - Freelist of central cache, each class.
56/// - Page heap freelist.
57void AddTCmallocOverview(const Webserver::WebRequest& req, Document* document) {
58 string s = MallocUtil::GetInstance()->GetTextDescription();
59 Value overview(s, document->GetAllocator());
60 document->AddMember("overview", overview, document->GetAllocator());
61}
62
63/// Adds the system memory configuration to the rapidjson document.
64void AddSystemInfo(const Webserver::WebRequest& req, Document* document) {

Callers 1

AddMemUsageCallbacksMethod · 0.85

Calls 2

GetTextDescriptionMethod · 0.45
AddMemberMethod · 0.45

Tested by

no test coverage detected