Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
cgroup.hh
Go to the documentation of this file.
1#pragma once
3
4#if __linux__
5
6#include <chrono>
7#include <optional>
8
10
11namespace nix {
12
13std::optional<Path> getCgroupFS();
14
15std::map<std::string, std::string> getCgroups(const Path & cgroupFile);
16
17struct CgroupStats
18{
19 std::optional<std::chrono::microseconds> cpuUser, cpuSystem;
20};
21
28CgroupStats destroyCgroup(const Path & cgroup);
29
30}
31
32#endif
std::string Path
Definition types.hh:28