FAQ
Alright.

It looks like this now:


Contributions of size per package:

[Internal runtime]
_cgo_notify_runtime_init_done 8
_cgo_thread_start 8
_cgo_topofstack 32
gosave 48
_cgo_sys_thread_start 214
x_cgo_sys_thread_create 75
masks 256
runtime_init_cond 48
_cgo_mmap 8
fatalf 206
setg_gcc 24
x_cgo_setenv 17
_rt0_amd64_linux 32
shifts 256
x_cgo_inittls 8
_cgo_malloc 8
runtime_init_done 4
runtime_init_mu 40
x_cgo_free 8
_cgo_free 8
_cgo_init 8
_cgo_panic 48
main 16
x_cgo_mmap 45
x_cgo_threadentry 8
x_cgo_thread_start 87
x_cgo_unsetenv 5
_cgo_wait_runtime_init_done 77
crosscall2 80
threadentry 68
x_cgo_init 143
x_cgo_malloc 61
x_cgo_notify_runtime_init_done 54

[Packages]
encoding/binary 305
encoding/csv 5601
flag 19081
github 120467
reflect 101069
text/template 85746
bufio 8049
crypto/des 7241
hash 65
internal/singleflight 65
math 2818
my/crypto/rsa 2660
os 17633
syscall 24154
unicode 77071
unicode/utf8 3514
cap 14153
errors 224
math/rand 13729
sync 5649
time 81184
crypto 1761
net 58352
strings 14889
sync/atomic 504
$f64 392
crypto/rand 2926
path/filepath 10129
runtime/cgo( 1446
runtime/internal/atomic 448
$f32 20
crypto/sha256 13021
main 10258
runtime 1056982
bytes 7785
go 2176
math/big 78009
my/crypto/cipher 1216
runtime/debug 832


Another approach is to add a new column or "mark" to indicate the special
ones, which would probably be more awk-friendly (but less
human-eyes-friendly).
On Wednesday, March 16, 2016 at 3:05:13 PM UTC+8, minux wrote:



On Wed, Mar 16, 2016 at 1:54 AM, mura <aruma...@gmail.com <javascript:>>
wrote:
Hi,

I have implemented two new flags (-cumsize and -pkgsize) for /cmd/nm

`$ go tool nm -pkgsize ./foo` will add a table at the bottom:

Contributions of size per package:

runtime 1057005
sync/atomic 504
x_cgo_mmap 45
x_cgo_threadentry 8
bufio 8049
hash 65
runtime/debug 832
runtime/cgo 1446
internal/singleflight 65
io 1793
sync 5649
x_cgo_inittls 8
fatalf 206
You might to add a category "internal runtime" for symbols that
doesn't contain a dot in their name (e.g. x_cgo_inittls, x_cgo_mmap, ...)
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 9 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedMar 16, '16 at 5:54a
activeMar 17, '16 at 3:44a
posts9
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase