[−][src]Trait scaphandre::sensors::RecordGenerator
Defines methods for Record instances creation and storage.
Required methods
pub fn refresh_record(&mut self) -> Record
[src]
pub fn get_records_passive(&self) -> Vec<Record>
[src]
pub fn clean_old_records(&mut self)
[src]
Implementors
impl RecordGenerator for CPUSocket
[src]
pub fn refresh_record(&mut self) -> Record
[src]
Generates a new record of the socket energy consumption and stores it in the record_buffer. Returns a clone of this Record instance.
pub fn clean_old_records(&mut self)
[src]
Checks the size in memory of record_buffer and deletes as many Record instances from the buffer to make it smaller in memory than buffer_max_kbytes.
pub fn get_records_passive(&self) -> Vec<Record>
[src]
Returns a new owned Vector being a clone of the current record_buffer. This does not affect the current buffer but is costly.
impl RecordGenerator for Domain
[src]
pub fn refresh_record(&mut self) -> Record
[src]
Computes a measurement of energy comsumption for this CPU domain, stores a copy in self.record_buffer and returns it.
pub fn clean_old_records(&mut self)
[src]
Removes as many Record instances from self.record_buffer as needed for record_buffer to take less than 'buffer_max_kbytes' in memory
pub fn get_records_passive(&self) -> Vec<Record>
[src]
Returns a copy of self.record_buffer
impl RecordGenerator for Topology
[src]
pub fn refresh_record(&mut self) -> Record
[src]
Computes a new Record, stores it in the record_buffer and returns a clone of this record
pub fn clean_old_records(&mut self)
[src]
Removes (and thus drops) as many Record instances from the record_buffer as needed for record_buffer to not exceed 'buffer_max_kbytes'
pub fn get_records_passive(&self) -> Vec<Record>
[src]
Returns a copy of the record_buffer