[][src]Struct scaphandre::sensors::powercap_rapl::PowercapRAPLSensor

pub struct PowercapRAPLSensor { /* fields omitted */ }

This is a Sensor type that relies on powercap and rapl linux modules to collect energy consumption from CPU sockets and RAPL domains

Implementations

impl PowercapRAPLSensor[src]

pub fn new(
    buffer_per_socket_max_kbytes: u16,
    buffer_per_domain_max_kbytes: u16,
    virtual_machine: bool
) -> PowercapRAPLSensor
[src]

Instantiates and returns an instance of PowercapRAPLSensor.

pub fn check_module() -> Result<String, String>[src]

Checks if intel_rapl modules are present and activated.

Trait Implementations

impl Sensor for PowercapRAPLSensor[src]

pub fn generate_topology(&self) -> Result<Topology, Box<dyn Error>>[src]

Creates a Topology instance.

pub fn get_topology(&mut self) -> Box<Option<Topology>>[src]

Instanciates Topology object if not existing and returns it

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,