diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2021-06-02 16:52:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 13:52:34 -0700 |
commit | a440c7697875e5fcc046370b40295f6dffe44ee0 (patch) | |
tree | 8116cb469426be60083e058e8bee6d2411b9b411 /test/lit/wasm-split/help.test | |
parent | d8f2ddd4d680b059c2daded7f57051bf21d77297 (diff) | |
download | binaryen-a440c7697875e5fcc046370b40295f6dffe44ee0.tar.gz binaryen-a440c7697875e5fcc046370b40295f6dffe44ee0.tar.bz2 binaryen-a440c7697875e5fcc046370b40295f6dffe44ee0.zip |
[wasm-split] Add a merge-profiles mode (#3917)
Given a list of profiles for the same module, --merge-profiles produces a single
combined profile the contains the minimum timestamp among the original profiles
for each function. When verbose output is enabled, also emit a message for each
profile that could individually be removed without affecting the set of
functions in the combined profile, as suggested in #3912.
Diffstat (limited to 'test/lit/wasm-split/help.test')
-rw-r--r-- | test/lit/wasm-split/help.test | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/lit/wasm-split/help.test b/test/lit/wasm-split/help.test index c473b28a1..de789a362 100644 --- a/test/lit/wasm-split/help.test +++ b/test/lit/wasm-split/help.test @@ -1,6 +1,6 @@ ;; RUN: wasm-split --help | filecheck %s -CHECK: wasm-split INFILE +CHECK: wasm-split INFILES CHECK-NEXT: CHECK-NEXT: Split a module into a primary module and a secondary module, or instrument a CHECK-NEXT: module to gather a profile that can inform future splitting, or manage such @@ -16,6 +16,8 @@ CHECK-NEXT: modules. The default mode. CHECK-NEXT: --instrument Instrument an input module to allow it to CHECK-NEXT: generate a profile that can be used to CHECK-NEXT: guide splitting. +CHECK-NEXT: --merge-profiles Merge multiple profiles for the same +CHECK-NEXT: module into a single profile. CHECK-NEXT: --profile [split] The profile to use to guide CHECK-NEXT: splitting. CHECK-NEXT: --keep-funcs [split] Comma-separated list of functions @@ -41,7 +43,6 @@ CHECK-NEXT: primary module. CHECK-NEXT: --export-prefix [split] An identifying prefix to prepend CHECK-NEXT: to new export names created by module CHECK-NEXT: splitting. -CHECK-NEXT: --output,-o [instrument] Output file. CHECK-NEXT: --profile-export [instrument] The export name of the CHECK-NEXT: function the embedder calls to write the CHECK-NEXT: profile into memory. Defaults to @@ -59,10 +60,11 @@ CHECK-NEXT: same table size when using Em CHECK-NEXT: SPLIT_MODULE mode with dynamic linking. CHECK-NEXT: TODO: Figure out a more elegant solution CHECK-NEXT: for that use case and remove this. +CHECK-NEXT: --emit-text,-S [split, instrument] Emit text instead of +CHECK-NEXT: binary for the output file or files. +CHECK-NEXT: --debuginfo,-g [split, instrument] Emit names section in +CHECK-NEXT: wasm binary (or full debuginfo in wast) +CHECK-NEXT: --output,-o [instrument, merge-profiles] Output file. CHECK-NEXT: --verbose,-v Verbose output mode. Prints the functions CHECK-NEXT: that will be kept and split out when CHECK-NEXT: splitting a module. -CHECK-NEXT: --emit-text,-S Emit text instead of binary for the -CHECK-NEXT: output file or files. -CHECK-NEXT: --debuginfo,-g Emit names section in wasm binary (or -CHECK-NEXT: full debuginfo in wast) |