Repository navigation
v0.1.35 — --format by-def histogram for ref/callers
New output mode that groups refs by their Layer 2 `resolved_to` target, sorts descending by count, and shows the top N groups with friendly `file:line [scope]` annotation. Unresolved refs go in a single `` bucket at the bottom.
Why this is useful
Answers "WHICH def do the callers actually target?" at a glance — invaluable for understanding how a polymorphic name like `close`, `onCreate`, or `transact` is dispatched across the corpus.
Live AOSP+Linux example
```
$ scry callers transact --strict --format by-def --limit 8
166 → Binder.cpp:411 [android::BBinder]
14 → poc.cpp:77
7 → Binder.cpp:114 [android::hardware::BHwBinder]
7 → BpBinder.cpp:400 [android::BpBinder]
4 → utilities.h:123 [SampleData]
3 → BinderProxy.java:541 [BinderProxy]
3 → SubmergeSharedDataStore.java:403 [SubmergeSharedDataStore]
2 → ImsMediaManagerTest.java:188 [ImsMediaManagerTest::IMediaStubTest]
219 refs in 19 groups (showing 8)
```
Reveals immediately that BBinder is by far the most-targeted impl, with a long tail of test mocks and alternative binder implementations.
Combines with `--def-in`, `--strict`, `--reachable` — they all narrow the input set, then by-def groups whatever survives.
`--format count` and `--format by-def` are mutually exclusive with `--json`.