()
| 64 | |
| 65 | impl JemallocStats { |
| 66 | pub fn get() -> anyhow::Result<JemallocStats> { |
| 67 | epoch::advance()?; |
| 68 | Ok(JemallocStats { |
| 69 | active: stats::active::read()?, |
| 70 | allocated: stats::allocated::read()?, |
| 71 | metadata: stats::metadata::read()?, |
| 72 | resident: stats::resident::read()?, |
| 73 | retained: stats::retained::read()?, |
| 74 | }) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | /// Metrics for jemalloc. |
no test coverage detected