EMDUMP(1)
β¨ 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 alla,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 offile2. matching set, so cute π--list-unaccounted LIST_UNACCOUNTEDβ pass--list-unaccounted=0to 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. heremdenotes minified,udenotes unminified, andddenotes 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 thatFoo<asdf>andFoo<qwer>become a genericFoo<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
- debian trixie: emscripten 3.1.69+dfsg-3 Β· GPL-3.0-or-later
- ubuntu questing: emscripten 3.1.69+dfsg-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms