gomass

command module
v0.0.0-...-457136a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

Gomass

Summary

Figure out what's giving your Go binaries so much mass. This provides a report broken out by package and symbol so that you can see exactly where your precious storage is being used.

Installation

This project can be directly installed via go:

go install github.com/andrewbenton/gomass@latest

Usage

View the help:

gomass -h

# Usage of gomass:
#  -b, --binary string
#  -f, --format string   Select the output format from [json] (default "json")
#  -s, --skip-symbols    Skip emitting granular symbol data
# pflag: help requested

Emit JSON for analysis:

gomass -b <my_binary>

Show a UI:

gomass -b <my_binary> -f ui

tree_view

Hide symbols from the report:

gomass -b <my_binary> -s

Notes

This analyzes binary space based on the symbol table. This will not be perfectly accurate and should only be used as a quick, general guide. If your binary has had the symbol table stripped, this will not be able to run.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL