Added commands for easier profiling. (#1236)

This commit is contained in:
Orson Peters
2023-05-25 12:03:12 +02:00
committed by GitHub
parent c476249c3b
commit 52bbf7e6e7
3 changed files with 15 additions and 0 deletions
+8
View File
@@ -58,3 +58,11 @@ wasm-opt = ["-Os"]
debug-js-glue = false
demangle-name-section = false
dwarf-debug-info = false
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ["-Os", "-g"]
[package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
debug-js-glue = true
demangle-name-section = true
dwarf-debug-info = true