pub struct PMUManager {
pub dataroot: OsString,
pub arch: String,
pub tuple: String,
pub codename: String,
pub pmus: HashMap<String, PMUSpec>,
}Fields§
§dataroot: OsString§arch: String§tuple: String§codename: String§pmus: HashMap<String, PMUSpec>Implementations§
Source§impl PMUManager
impl PMUManager
Sourcefn identify_architecture() -> Result<String>
fn identify_architecture() -> Result<String>
Identify the architecture of the local machine and retrieve the paths to the relevant JSON files.
Sourcepub fn list_counters(&self) -> Result<()>
pub fn list_counters(&self) -> Result<()>
List all available counters for the current machine.
pub fn list_metadata(&self)
fn read_file_counters(json_bytes: &[u8]) -> Result<Vec<PMUSpec>>
fn arch_code() -> String
fn spec_dir( resource_dir: &ResourceDir, arch: &str, tuple: &str, ) -> Result<String>
fn new_with_resource_dir( resource_dir: ResourceDir, dataroot_display: OsString, ) -> Result<Self>
pub fn new() -> Result<Self>
pub fn new_with_dataroot(dataroot: Option<&Path>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for PMUManager
impl RefUnwindSafe for PMUManager
impl Send for PMUManager
impl Sync for PMUManager
impl Unpin for PMUManager
impl UnsafeUnpin for PMUManager
impl UnwindSafe for PMUManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more