MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / profiler

Method profiler

crates/wasmtime/src/config.rs:1403–1406  ·  view source on GitHub ↗

Creates a default profiler based on the profiling strategy chosen. Profiler creation calls the type's default initializer where the purpose is really just to put in place the type used for profiling. Some [`ProfilingStrategy`] require specific platforms or particular feature to be enabled, such as `ProfilingStrategy::JitDump` requires the `jitdump` feature. # Errors The validation of this fiel

(&mut self, profile: ProfilingStrategy)

Source from the content-addressed store, hash-verified

1401 /// cause `Engine::new` fail if the required feature is disabled, or the platform is not
1402 /// supported.
1403 pub fn profiler(&mut self, profile: ProfilingStrategy) -> &mut Self {
1404 self.profiling_strategy = profile;
1405 self
1406 }
1407
1408 /// Configures whether the debug verifier of Cranelift is enabled or not.
1409 ///

Callers 5

serveMethod · 0.45
new_engineMethod · 0.45
perfmapFunction · 0.45
from_parts_rawMethod · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected