$ xref stats
On this page
Functions, code size, data pointers, imports and panic locations.
Summarizes .eh_frame function boundaries, code bytes, relocated pointers, imports, symbol count, and Rust panic locations without writing an index.
Usage
xref stats
Arguments and options
Examples
All examples were recorded on public binaries; see Provenance.
Stats
Instant overview of stripped xref.stripped (0 symbols, 1,974 .eh_frame functions, 588 panic locations).
$ xref -b xref.stripped stats
functions 1974 code 0x177f94 bytes largest 0xd7740..0xf13ff (0x19cbf bytes) pointers 1510 imports 80 symbols 0 panic locations 588 source files 143
xref: load 486.6µs, total 1.1ms
Reading the output
functionsandcode: number of functions from.eh_frameand the bytes of code they cover.largest: the biggest function range.pointers,imports,symbols: data slots holding code addresses, imported functions, and symbol-table entries (0 when stripped).panic locations,source files: Rust panicLocationdescriptors found and the distinct files they name.
Limits
- Counts describe what xref can see statically; functions without unwind information are covered by span fallback and may be split or merged.
Provenance
Recorded with a development build of xref after 0.4.0 on Linux x86-64, on xref.stripped = a stripped xref build (the binary of the home-page examples). Output is unchanged except that whitespace at the end of each line and empty lines at the end of the output are removed; long outputs are cut where marked.
Source: docs/cli/stats.md · generated for the site; edit the Markdown, not this page.