17 #ifndef __CGROUPS_ISOLATOR_SUBSYSTEMS_PERF_EVENT_HPP__ 18 #define __CGROUPS_ISOLATOR_SUBSYSTEMS_PERF_EVENT_HPP__ 53 std::string
name()
const override 59 const ContainerID& containerId,
61 const mesos::slave::ContainerConfig& containerConfig)
override;
64 const ContainerID& containerId,
65 const std::string& cgroup)
override;
68 const ContainerID& containerId,
69 const std::string& cgroup)
override;
72 const ContainerID& containerId,
73 const std::string& cgroup)
override;
81 const std::string& hierarchy,
82 const std::set<std::string>& events);
86 Info(
const std::string& _cgroup)
108 std::set<std::string> events;
118 #endif // __CGROUPS_ISOLATOR_SUBSYSTEMS_PERF_EVENT_HPP__
const std::string CGROUP_SUBSYSTEM_PERF_EVENT_NAME
Definition: constants.hpp:51
Result< hashmap< std::string, uint64_t > > statistics(const std::string &link)
process::Future< Nothing > cleanup(const ContainerID &containerId, const std::string &cgroup) override
Definition: hashmap.hpp:38
void initialize() override
Invoked when a process gets spawned.
process::Future< ResourceStatistics > usage(const ContainerID &containerId, const std::string &cgroup) override
Definition: duration.hpp:207
Represent cgroups perf_event subsystem.
Definition: perf_event.hpp:44
Result< std::string > cgroup(pid_t pid)
static Try< process::Owned< SubsystemProcess > > create(const Flags &flags, const std::string &hierarchy)
Definition: subsystem.hpp:190
Definition: attributes.hpp:24
const std::string hierarchy
The hierarchy path of cgroups subsystem.
Definition: subsystem.hpp:245
static Time now()
The current clock time for either the current process that makes this call or the global clock time i...
std::string name() const override
Definition: perf_event.hpp:53
~PerfEventSubsystemProcess() override=default
process::Future< Nothing > prepare(const ContainerID &containerId, const std::string &cgroup, const mesos::slave::ContainerConfig &containerConfig) override
process::Future< Nothing > recover(const ContainerID &containerId, const std::string &cgroup) override