Nix
2.93.0-dev
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
9
#include "
lix/libutil/types.hh
"
10
11
namespace
nix {
12
13
std::optional<Path> getCgroupFS();
14
15
std::map<std::string, std::string> getCgroups(
const
Path & cgroupFile);
16
17
struct
CgroupStats
18
{
19
std::optional<std::chrono::microseconds> cpuUser, cpuSystem;
20
};
21
28
CgroupStats destroyCgroup(
const
Path & cgroup);
29
30
}
31
32
#endif
types.hh
lix
libutil
cgroup.hh
Generated by
1.10.0