Skip to content

Size visualization of Go executables using D3

Notifications You must be signed in to change notification settings

deviceplane/go-binsize-viz

 
 

Repository files navigation

Go executable size visualization using D3

This directory contains code and data to visualize the contents of Go binaries.

Example output

screenshot

How to use

Apply tools in order (Python 3 required):

  1. go tool nm -size <binary file> | c++filt and redirect to some file, e.g. symtab.txt

    (provided with the Go toolchain.)

  2. python3 tab2pydic.py on the previously generated file, redirect to e.g. out.py

  3. python3 simplify.py on the previously generated file, redirect to data.js specifically

  4. python3 -m http.server

  5. open browser on http://localhost:8000/treemap_v3.html

Included example data using CockroachDB

  1. python3 -m http.server

  2. open browser on http://localhost:8000/cockroach_sizes.html

Origin of the D3 viz source code

This repo uses D3 visualization code inspired from / modifying the following sources:

About

Size visualization of Go executables using D3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.0%
  • JavaScript 6.3%
  • HTML 2.6%
  • Other 1.1%