pub struct ProfileBuilder { /* private fields */ }Expand description
A builder for constructing Profiles.
Primarily for use in conjunction with
InstrumentationStrategy::HostCalls
and implementing the winliner.add_indirect_call import function for the
instrumented Wasm.
§Example
use winliner::ProfileBuilder;
// Create a new builder.
let mut builder = ProfileBuilder::new();
// Record some observed calls.
let callee = 42;
let call_site = 36;
builder.add_indirect_call(callee, call_site);
// Construct the finished profile from the builder.
let profile = builder.build();Implementations§
Trait Implementations§
Source§impl Clone for ProfileBuilder
impl Clone for ProfileBuilder
Source§fn clone(&self) -> ProfileBuilder
fn clone(&self) -> ProfileBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ProfileBuilder
impl Default for ProfileBuilder
Source§fn default() -> ProfileBuilder
fn default() -> ProfileBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProfileBuilder
impl RefUnwindSafe for ProfileBuilder
impl Send for ProfileBuilder
impl Sync for ProfileBuilder
impl Unpin for ProfileBuilder
impl UnsafeUnpin for ProfileBuilder
impl UnwindSafe for ProfileBuilder
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