rvolosatovs opened PR #13954 from rvolosatovs:feat/clonable-wizer-cx to bytecodealliance:main:
I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which in itself is notClone.
I first added aCloneimplementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead.
rvolosatovs edited PR #13954:
I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which in itself is notClone.
I first added aCloneimplementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead as well.
rvolosatovs edited PR #13954:
I would like to use Wizer to instrument a single Wasm component, instantiate it multiple times and then snapshot the state of each individual instance.
Currently that requires instrumenting the component N times for each instance, since snapshotting moves the context, which is itself notClone.
I first added aCloneimplementation to the context, but then realized that it is never actually mutated, so switched snapshot functions to borrow the context instead as well.
rvolosatovs has marked PR #13954 as ready for review.
rvolosatovs requested pchickey for a review on PR #13954.
rvolosatovs requested wasmtime-core-reviewers for a review on PR #13954.
:thumbs_up: pchickey submitted PR review:
Thanks
rvolosatovs added PR #13954 feat: allow Wizer context reuse to the merge queue.
github-actions[bot] added the label wizer on PR #13954.
github-actions[bot] commented on PR #13954:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "wizer"Thus the following users have been cc'd because of the following labels:
- fitzgen: wizer
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:check: rvolosatovs merged PR #13954.
rvolosatovs removed PR #13954 feat: allow Wizer context reuse from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC