What code size means
Code size is the amount of executable code in a component as it would be loaded into memory. It is not the file size on disk, and it does not include data sections.
A component with no executable sections has a code size of zero and is never excluded, however large the file is.
The limit applies only to components the platform classifies as binary code. Components on non-binary platforms are analysed regardless of size.
What happens to an excluded component
The component keeps its place in the scan results. What changes is analysis coverage:- Analysis tools that hit the limit skip the component and produce no findings from its code.
- The scan records a
metadata/analysis/exceeds-code-size-limitproperty against the component, carrying its actual code size and the limit it exceeded. See Metadata Classes for where this class sits. - The component still appears in the component tree with its name and path.
Finding excluded components
In the platform UI, the Components tab on an image carries the configured limit in its tooltip, and its Reduced analysis coverage tab lists every component that was skipped, with a count next to the tab label. Each row shows the component name, its code size, its path, and the reason it was excluded. Name and path filter on substrings, and code size sorts. When nothing was skipped the tab is empty and disabled. The upload dialog states the limit before you submit a file. See Components tab for the walkthrough. The tooltip and the upload notice state the limit from your instance configuration. The Reason column on each row shows the limit that component was measured against, which can be lower where an individual analysis tool is configured differently. The same list is available from the components grid endpoint by filtering on the exclusion reason:codeSize and codeSizeLimit in bytes alongside reason. All three are absent for components that were analysed in full.
If you need more coverage
Binarly sets the limit to a tested value that keeps scans within the resourcing an instance is provisioned for. If components you care about show up under Reduced analysis coverage and you need them analysed, contact Binarly Support with the image and the components in question, and we will review the limit for your workload. Self-hosted operators set the value themselves. See Analysis Code Size Limit for the chart value, the default, and the resourcing to account for before raising it.Related
- Components tab - Reviewing components and reduced analysis coverage in the UI
- Finding Classes Reference - Where the code size limit metadata class sits
- Analysis Code Size Limit - Setting the limit in a self-hosted deployment
- Component and Version Identification - How components are identified before any code analysis runs