Skip to content

Commit 3c2881a

Browse files
deploy: 18fa441
1 parent bc947fa commit 3c2881a

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

getting-started/debugging.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,17 @@ <h2><a class="header" href="#a-hrefhttpsgithubcomkateinoigakukunwasminspectwasmi
184184
<p><img src="https://raw.githubusercontent.com/kateinoigakukun/wasminspect/master/assets/demo.gif" alt="demo" /></p>
185185
<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>
186186
<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 &quot;wasm-memprof&quot;;
189+
import { SwiftDemangler } from &quot;wasm-memprof/plugins/swift-demangler.js&quot;;
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">
188198

189199
</main>
190200

print.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,17 @@ <h2><a class="header" href="#a-hrefhttpsgithubcomkateinoigakukunwasminspectwasmi
722722
<p><img src="https://raw.githubusercontent.com/kateinoigakukun/wasminspect/master/assets/demo.gif" alt="demo" /></p>
723723
<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>
724724
<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 &quot;wasm-memprof&quot;;
727+
import { SwiftDemangler } from &quot;wasm-memprof/plugins/swift-demangler.js&quot;;
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">
726736
<h1><a class="header" href="#troubleshooting" id="troubleshooting">Troubleshooting</a></h1>
727737
<p>These are some common issues you may run into while using SwiftWasm.</p>
728738
<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>.

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)