From 011e785d42ccad99bfa04bc34fe1133ceb3869b4 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Mon, 7 Jun 2021 21:45:35 +0100 Subject: [PATCH] Keep function names in profiling Work around https://github.com/rustwasm/wasm-pack/issues/797. --- Cargo.toml | 1 + benchmarks/Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5ec8117..cca2149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ members = ["benchmarks"] [profile.release] lto = true codegen-units = 1 +debug = true [features] external_doc = [] diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 3a10847..8b536f3 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -17,3 +17,6 @@ crate-type = ["cdylib", "rlib"] [features] default = ["serde-json", "serde-wasm-bindgen"] serde-json = ["wasm-bindgen/serde-serialize"] + +[package.metadata.wasm-pack.profile.profiling] +wasm-opt = ['-O', '-g']