wasmprof
A library that allows to profile code running inside of wasmtime
How to use it
// First you want to create a `ProfilerBuilder` like so:
// Here we are assuming that you have a `Wasmtime::Store` to pass to the builder.
let builder = new;
// Then you can set the frequency at which it's going to sample and the kind of weight to use:
// Here we are setting the frequency to 1000 (sampling 1000 in a second) and we chose `Fuel` as the weight
let builder = builder
.frequency
.weight_unit;
// finally we can start profiling
builder.profile
A complete example can be found in the examples folder.