mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
add feature wasmtime-jitdump (#9871)
* add feature wasmtime-jitdump * remove unwrap * always enable wasmtime/jitdump feature * env WASMTIME_PROFILING_STRATEGY: retun an error for unknown value * Add doc for env var WASMTIME_PROFILING_STRATEGY * Update client/executor/wasmtime/Cargo.toml Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com> * warning instead of error * Update client/executor/wasmtime/src/runtime.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * update doc: unknown value cause warning instead of error * log warning only once * static right next to the usage Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,17 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
/// ! Defines a `WasmRuntime` that uses the Wasmtime JIT to execute.
|
||||
//! Defines a `WasmRuntime` that uses the Wasmtime JIT to execute.
|
||||
//!
|
||||
//! You can choose a profiling strategy at runtime with
|
||||
//! environment variable `WASMTIME_PROFILING_STRATEGY`:
|
||||
//!
|
||||
//! | `WASMTIME_PROFILING_STRATEGY` | Effect |
|
||||
//! |-------------|-------------------------|
|
||||
//! | undefined | No profiling |
|
||||
//! | `"jitdump"` | jitdump profiling |
|
||||
//! | other value | No profiling (warning) |
|
||||
|
||||
mod host;
|
||||
mod imports;
|
||||
mod instance_wrapper;
|
||||
|
||||
Reference in New Issue
Block a user