knz/go-binsize-viz
소개
D3를 사용해 Go 실행 파일의 크기를 시각화합니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGo executable size visualization using D3
This directory contains code and data to visualize the contents of Go binaries.
Example output

How to use
Apply tools in order (Python 3 required):
go tool nm -size <binary file> | c++filtand redirect to some file, e.g.symtab.txt(provided with the Go toolchain.)
python3 tab2pydic.pyon the previously generated file, redirect to e.g.out.pypython3 simplify.pyon the previously generated file, redirect todata.jsspecificallypython3 -m http.serveropen browser on http://localhost:8000/treemap_v3.html
Using Docker
For example:
docker run -v $GOPATH/bin/:/go/bin -p 8000:8000 odedp/go-binsize-viz -b /go/bin/dep
(Use -b to target the Go executable.)
Included example data using CockroachDB
python3 -m http.serveropen 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:
Jacques Jahnichen's zoomable treemap at http://bl.ocks.org/JacquesJahnichen/42afd0cde7cbf72ecb81
ported to D3 v4 by Guglielmo Celata at http://bl.ocks.org/guglielmo/16d880a6615da7f502116220cb551498
Licensing
The Python bits (and thus the Docker embedding) are licensed under the Affero GPL3. This requires derived software to also use AGPL3, and prevents network usage without distribution of source code.
The D3 / Javascript bits in app3.js (see previous section) are currently
UNLICENSED. They cannot be reused in derived work or other applications
without direct permission from the original author.
The files in the js subdirectory are imported from the D3.js project
(https://d3js.org/) and are licensed under the terms of the 3-Clause
BSD license.
관련 프로젝트 살펴보기
불러오는 중…