Skip to content

Commit

Permalink
[feature] #4083: Wasm profiling
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <[email protected]>
  • Loading branch information
Erigara committed Jan 23, 2024
1 parent f60de47 commit 4e6e24c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/smartcontracts/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ fn create_config() -> Result<Config> {
.consume_fuel(true)
.cache_config_load_default()
.map_err(Error::Initialization)?;
#[cfg(wasm_profiling)]
{
config.profiler(wasmtime::ProfilingStrategy::PerfMap);
}
Ok(config)
}

Expand Down

0 comments on commit 4e6e24c

Please sign in to comment.