From 0fc4a54872fd4d95ade4eba8aa96f387ce3016a1 Mon Sep 17 00:00:00 2001 From: Mason Wu Date: Tue, 1 Oct 2024 20:23:50 +0000 Subject: [PATCH] Add doc for source-map option to usage string. --- doc/using.md | 5 +++++ src/bloaty.cc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/using.md b/doc/using.md index c05359b5..7dca1509 100644 --- a/doc/using.md +++ b/doc/using.md @@ -99,6 +99,11 @@ Options: -c FILE Load configuration from . -d SOURCE,SOURCE Comma-separated list of sources to scan. --debug-file=FILE Use this file for debug symbols and/or symbol table. + --source-map=ID=FILE + Use this source map file for the binary. The ID can be + the build ID (or Wasm sourceMappingURL) or the file path + as specified in the command line. + Currently only supported for Wasm. -C MODE How to demangle symbols. Possible values are: --demangle=MODE --demangle=none no demangling, print raw symbols --demangle=short demangle, but omit arg/return types diff --git a/src/bloaty.cc b/src/bloaty.cc index 1d08090b..e5d1f033 100644 --- a/src/bloaty.cc +++ b/src/bloaty.cc @@ -1973,6 +1973,11 @@ USAGE: bloaty [OPTION]... FILE... [-- BASE_FILE...] -c FILE Load configuration from . -d SOURCE,SOURCE Comma-separated list of sources to scan. --debug-file=FILE Use this file for debug symbols and/or symbol table. + --source-map=ID=FILE + Use this source map file for the binary. The ID can be + the build ID (or Wasm sourceMappingURL) or the file path + as specified in the command line. + Currently only supported for Wasm. -C MODE How to demangle symbols. Possible values are: --demangle=MODE --demangle=none no demangling, print raw symbols --demangle=short demangle, but omit arg/return types