Scroll to navigation

EMDUMP(1) User Commands EMDUMP(1)

NAME

emdump - emscripten tool to print out statistics about compiled code sizes

DESCRIPTION

usage: emdump.py prints out statistics about compiled code sizes. python emdump.py --file a.js [--file2 b.js]

options:

show this help message and exit
Specifies the compiled JavaScript build file to analyze.
Specifies the compiled JavaScript build file to analyze.
Specifies a filename to the symbol map file that can be used to unminify function and variable names.
Specifies a second compiled JavaScript build file to analyze.
Specifies a filename to a second symbol map file that will be used to unminify function and variable names of file2.
Pass --list-unaccounted=0 to skip listing a summary entry of unaccounted content
If an integer value >= 0 is specified, all unaccounted strings of content longer than the given value will be printed out to the console. (Note that it is common to have several unaccounted blocks, this is provided for curiosity/debugging/optimization ideas)
If two data sets are specified, prints out only the symbols that are present in set 1, but not in set 2
If two data sets are specified, prints out only the symbols that are present in set 2, but not in set 1
If two data sets are specified, prints out only the symbols that are common to both data sets
If two data sets are specified, prints out only the symbols that have changed size or are added/removed
If specified, detailed information about each symbol is not printed, but only summary data is shown.
Only prints out information about symbols that contain the given filter substring in their demangled names. The filtering is always performed in lower case.
Only prints out information about symbols that are (or were) larger than the given amount of bytes.
Specifies the data column to sort output by. Possible values are: lines, bytes, delta, abs_delta, type, minified, unminified, demangled
Specifies the naming format for the symbols. Possible options are one of: m, u, d, du, dm, um, dum. Here "m" denotes minified, "u" denotes unminified, and "d" denotes demangled. Specify any combination of the characters in upper case to print out function parameters. Default: DM.
If true, reverses the sorting order to be ascending instead of default descending.
Simplify C++ STL types as much as possible in the output
Group/collapse all C++ templates with Foo<asdf> and Foo<qwer> to generic Foo<T>
March 2024 emdump 3.1.6~dfsg