File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,17 @@ <h2><a class="header" href="#a-hrefhttpsgithubcomkateinoigakukunwasminspectwasmi
184
184
< p > < img src ="https://raw.githubusercontent.com/kateinoigakukun/wasminspect/master/assets/demo.gif " alt ="demo " /> </ p >
185
185
< h2 > < a class ="header " href ="#a-hrefhttpsgithubcomkateinoigakukunwasm-memprofwasm-memprofa " id ="a-hrefhttpsgithubcomkateinoigakukunwasm-memprofwasm-memprofa "> < a href ="https://github.com/kateinoigakukun/wasm-memprof "> wasm-memprof</ a > </ a > </ h2 >
186
186
< p > If you are debugging memory leaks, < a href ="https://github.com/kateinoigakukun/wasm-memprof "> wasm-memprof</ a > can help you.
187
- It is a tool to profile memory usage of WebAssembly applications with minimal setup. Check the repository for more details.</ p >
187
+ It is a tool to profile memory usage of WebAssembly applications with a few lines of setup code:</ p >
188
+ < pre > < code class ="language-javascript "> import { WMProf } from "wasm-memprof";
189
+ import { SwiftDemangler } from "wasm-memprof/plugins/swift-demangler.js";
190
+
191
+ const swiftDemangler = SwiftDemangler.create();
192
+ const WebAssembly = WMProf.wrap(globalThis.WebAssembly, {
193
+ demangler: swiftDemangler.demangle.bind(swiftDemangler),
194
+ });
195
+ </ code > </ pre >
196
+ < p > Check the repository for more details.</ p >
197
+ < img width ="1000 " alt ="swift-wmprof " src ="https://github.com/user-attachments/assets/c1da4582-e721-45b9-9bca-ce320711f72d ">
188
198
189
199
</ main >
190
200
Original file line number Diff line number Diff line change @@ -722,7 +722,17 @@ <h2><a class="header" href="#a-hrefhttpsgithubcomkateinoigakukunwasminspectwasmi
722
722
< p > < img src ="https://raw.githubusercontent.com/kateinoigakukun/wasminspect/master/assets/demo.gif " alt ="demo " /> </ p >
723
723
< h2 > < a class ="header " href ="#a-hrefhttpsgithubcomkateinoigakukunwasm-memprofwasm-memprofa " id ="a-hrefhttpsgithubcomkateinoigakukunwasm-memprofwasm-memprofa "> < a href ="https://github.com/kateinoigakukun/wasm-memprof "> wasm-memprof</ a > </ a > </ h2 >
724
724
< p > If you are debugging memory leaks, < a href ="https://github.com/kateinoigakukun/wasm-memprof "> wasm-memprof</ a > can help you.
725
- It is a tool to profile memory usage of WebAssembly applications with minimal setup. Check the repository for more details.</ p >
725
+ It is a tool to profile memory usage of WebAssembly applications with a few lines of setup code:</ p >
726
+ < pre > < code class ="language-javascript "> import { WMProf } from "wasm-memprof";
727
+ import { SwiftDemangler } from "wasm-memprof/plugins/swift-demangler.js";
728
+
729
+ const swiftDemangler = SwiftDemangler.create();
730
+ const WebAssembly = WMProf.wrap(globalThis.WebAssembly, {
731
+ demangler: swiftDemangler.demangle.bind(swiftDemangler),
732
+ });
733
+ </ code > </ pre >
734
+ < p > Check the repository for more details.</ p >
735
+ < img width ="1000 " alt ="swift-wmprof " src ="https://github.com/user-attachments/assets/c1da4582-e721-45b9-9bca-ce320711f72d ">
726
736
< h1 > < a class ="header " href ="#troubleshooting " id ="troubleshooting "> Troubleshooting</ a > </ h1 >
727
737
< p > These are some common issues you may run into while using SwiftWasm.</ p >
728
738
< p > If you are having trouble that is not listed here, try searching for it in the < a href ="https://github.com/swiftwasm/swift/issues "> SwiftWasm issue tracker</ a > .
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments