Information about CPU limits in container.
Definition in file cpu_limit.hpp.
Go to the source code of this file.
#include <optional>Namespaces | |
| namespace | hostinfo |
| Information about current host. | |
Functions | |
| std::optional< double > | hostinfo::CpuLimit () |
| Returns the CPU limit. | |
| bool | hostinfo::IsInRtc () |
| Returns true if the current process is run in container (CPU_LIMIT environment variable is set). | |