pub struct ProfileStore { /* private fields */ }Expand description
Table-backed measured profile store.
Implementations§
Source§impl ProfileStore
impl ProfileStore
Sourcepub fn new(table: Value, policy: ProfileStorePolicy) -> Result<Self>
pub fn new(table: Value, policy: ProfileStorePolicy) -> Result<Self>
Builds a store from a caller-supplied Table or Dir value.
Sourcepub fn save(
&self,
cx: &mut Cx,
key: Symbol,
profile: &MeasuredComputeProfile,
) -> Result<()>
pub fn save( &self, cx: &mut Cx, key: Symbol, profile: &MeasuredComputeProfile, ) -> Result<()>
Stores a profile with one bounded, atomic table update.
Auto Trait Implementations§
impl !RefUnwindSafe for ProfileStore
impl !UnwindSafe for ProfileStore
impl Freeze for ProfileStore
impl Send for ProfileStore
impl Sync for ProfileStore
impl Unpin for ProfileStore
impl UnsafeUnpin for ProfileStore
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