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.
| 55 | /// - Freelist of central cache, each class. |
| 56 | /// - Page heap freelist. |
| 57 | void 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. |
| 64 | void AddSystemInfo(const Webserver::WebRequest& req, Document* document) { |
no test coverage detected