pub enum BuildProfile {
Debug,
Release,
}Expand description
Build profile controlling optimization and debug info.
Similar to Cargo’s --release flag, this controls whether the build
is optimized for debugging or performance.
§Example
use mobench_sdk::BuildProfile;
let debug = BuildProfile::Debug;
assert_eq!(debug.as_str(), "debug");
let release = BuildProfile::Release;
assert_eq!(release.as_str(), "release");Variants§
Debug
Debug build with debug symbols and no optimizations.
Faster compilation but slower runtime. Useful for development and troubleshooting.
Release
Release build with optimizations enabled.
Slower compilation but faster runtime. Use this for actual benchmark measurements.
Implementations§
Source§impl BuildProfile
impl BuildProfile
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns the string representation of the profile.
§Returns
"debug"forBuildProfile::Debug"release"forBuildProfile::Release
Trait Implementations§
Source§impl Clone for BuildProfile
impl Clone for BuildProfile
Source§fn clone(&self) -> BuildProfile
fn clone(&self) -> BuildProfile
Returns a duplicate 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 BuildProfile
impl Debug for BuildProfile
Source§impl PartialEq for BuildProfile
impl PartialEq for BuildProfile
impl Copy for BuildProfile
impl Eq for BuildProfile
impl StructuralPartialEq for BuildProfile
Auto Trait Implementations§
impl Freeze for BuildProfile
impl RefUnwindSafe for BuildProfile
impl Send for BuildProfile
impl Sync for BuildProfile
impl Unpin for BuildProfile
impl UnwindSafe for BuildProfile
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