pub fn detect_memory_limit() -> Option<MemoryLimit>
Returns the cgroup (v1 or v2) memory limit if it exists.