Skip to content

Reduce size of symbols #20857

@vkalintiris

Description

@vkalintiris
$ nm --print-size --size-sort --reverse-sort ~/opt/master/netdata/usr/sbin/netdata | head -10 | awk '{printf "%s %d %s %s\n", $1, strtonum("0x"$2), $3, $4}'
000000000082ed88 557080 B stream_thread_globals
0000000000791250 407184 d all_workers_utilization
00000000008be5c8 59400 B queryPool
0000000000821e28 49512 B aclk_sync_config
0000000000815c10 49504 B meta_config
000000000054ca9d 32760 t sqlite3VdbeExec
00000000004c513a 28861 t parser_action
00000000005f15d8 28308 t parser_action
00000000004cc281 26073 T parser_execute
000000000045447f 24806 t daemon_status_file_from_json

For reference building a -Oz sqlite shell ends up taking 900+ Kib. IOW, stream_thread_globals and all_workers_utilization take as much space as the entire sqlite3 database.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions