EMDUMP(1)

πŸ“¦
version 3.1.69 Β· 5 versions
, in debian trixie, ubuntu questing

✨ NAME ✨

emdump β€” bestie, it's the emscripten tool that prints out statistics about compiled code sizes πŸ’– lowkey a baddie for anyone who wants to know where their bytes went


πŸŽ€ DESCRIPTION πŸŽ€

okay so the vibe is: usage β€” emdump.py prints out statistics about compiled code sizes. that's the whole gig. she counts, she reports, she slays πŸ“Šβœ¨

python emdump.py --file a.js [--file2 b.js]

like literally you hand her a build file and she starts yapping numbers at you, and honestly? we listen. πŸ‘‘

πŸ’… options:

  • -h, --help β€” shows this help message and then exits. the classic. the icon. every tool has one and she's not about to be left out 🫢
  • --file [FILE ...] β€” specifies the compiled JavaScript build file to analyze. this is your main character file fr fr πŸ¦‹
  • --file1 [FILE1 ...] β€” specifies the compiled JavaScript build file to analyze. yes bestie this is the exact same description as --file, I did not make that up, that's literally what it says πŸ’€
  • --symbol-map SYMBOL_MAP β€” specifies a filename to the symbol map file, which can be used to unminify function and variable names. so like, if your names are all a, b, c, this is how you find out who's who πŸ”βœ¨
  • --file2 [FILE2 ...] β€” specifies a second compiled JavaScript build file to analyze. two files, one emdump, no cap πŸ’œ
  • --symbol-map2 SYMBOL_MAP2 β€” specifies a filename to a second symbol map file, used to unminify function and variable names of file2. matching set, so cute πŸŽ€
  • --list-unaccounted LIST_UNACCOUNTED β€” pass --list-unaccounted=0 to skip listing a summary entry of unaccounted content πŸ™ˆ
  • --dump-unaccounted-larger-than DUMP_UNACCOUNTED_LARGER_THAN β€” if you give it an integer value >= 0, all unaccounted strings of content longer than that value get printed out to the console. (note that it is common to have several unaccounted blocks β€” this one's just here for curiosity / debugging / optimization ideas, iykyk 🧚)
  • --only-unique-1 β€” if two data sets are specified, prints out only the symbols that are present in set 1, but not in set 2. set 1 girlies only, sorry to set 2 🌸
  • --only-unique-2 β€” if two data sets are specified, prints out only the symbols that are present in set 2, but not in set 1. now it's set 2's turn to shine ✨
  • --only-common β€” if two data sets are specified, prints out only the symbols that are common to both data sets. the overlap, the shared custody, the friendship 🀝
  • --only-changes β€” if two data sets are specified, prints out only the symbols that have changed size or are added/removed. the glow-up report πŸ’…
  • --only-summarize β€” if specified, detailed information about each symbol is not printed, but only summary data is shown. we're keeping it brief, we're being mysterious πŸŽ€
  • --filter-name FILTER_NAME β€” only prints out information about symbols that contain the given filter substring in their demangled names. the filtering is always performed in lower case, so don't come at her with your caps πŸ”€
  • --filter-size FILTER_SIZE β€” only prints out information about symbols that are (or were) larger than the given amount of bytes. size queen behavior, respectfully πŸ“
  • --sort SORT β€” specifies the data column to sort output by. possible values are: lines, bytes, delta, abs_delta, type, minified, unminified, demangled πŸ“‹
  • --print-format PRINT_FORMAT β€” 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. yes the case thing is real, read it again bestie πŸ‘€
  • --sort-ascending β€” if true, reverses the sorting order to be ascending instead of the default descending. sometimes you want the small ones first, and that's valid 🌈
  • --simplify-cxx β€” simplify C++ STL types as much as possible in the output. less noise, more clarity, we love a clean feed ✨
  • --group-templates β€” group/collapse all C++ templates so that Foo<asdf> and Foo<qwer> become a generic Foo<T>. the way that just makes sense honestly πŸ”₯

heads up bestie: every flag, value and default above is straight from the real page β€” I just gave them a wardrobe change. the facts stayed exactly the same, periodt πŸ’–

and that's the whole page!! this was emdump 3.1.69+dfsg, dated May 2025 β€” go forth and count your bytes, you absolute legend πŸ‘‘πŸ’œπŸ¦‹

πŸ“¦ where this page comes from