Struct cgroups_rs::perf_event::PerfEventController
source · pub struct PerfEventController { /* private fields */ }
Expand description
A controller that allows controlling the perf_event
subsystem of a Cgroup.
In essence, when processes belong to the same perf_event
controller, they can be monitored
together using the perf
performance monitoring and reporting tool.
Implementations§
Trait Implementations§
source§impl Clone for PerfEventController
impl Clone for PerfEventController
source§fn clone(&self) -> PerfEventController
fn clone(&self) -> PerfEventController
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PerfEventController
impl Debug for PerfEventController
source§impl<'a> From<&'a Subsystem> for &'a PerfEventController
impl<'a> From<&'a Subsystem> for &'a PerfEventController
source§fn from(sub: &'a Subsystem) -> &'a PerfEventController
fn from(sub: &'a Subsystem) -> &'a PerfEventController
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PerfEventController
impl Send for PerfEventController
impl Sync for PerfEventController
impl Unpin for PerfEventController
impl UnwindSafe for PerfEventController
Blanket Implementations§
source§impl<T> Controller for Twhere
T: ControllerInternal,
impl<T> Controller for Twhere
T: ControllerInternal,
source§fn apply(&self, res: &Resources) -> Result<(), Error>
fn apply(&self, res: &Resources) -> Result<(), Error>
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
source§fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
Attach a task to this controller by thread group id.