userver: userver/hostinfo/cpu_limit.hpp File Reference
Loading...
Searching...
No Matches
cpu_limit.hpp File Reference

Detailed Description

Information about CPU limits in container.

Definition in file cpu_limit.hpp.

Go to the source code of this file.

#include <optional>
+ Include dependency graph for cpu_limit.hpp:

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).