Skip to content
Novus Examples
txt404 B

Allocation Profile — Folded Stacks Weighted in Bytes (txt)

An allocation profile in the same folded syntax as the CPU profiles, but weighted in bytes rather than samples. The format carries no unit, so a viewer that assumes samples renders 65 MB of allocation as 68 million samples — which is what this fixture is for.

Preview — first 7 linestxt
main;checkout.Handle;encoding/json.Unmarshal;makeslice 68157440
main;checkout.Handle;pricing.total;makemap_small 12582912
main;checkout.Handle;fmt.Sprintf;runtime.concatstrings 41943040
main;checkout.Handle;inventory.Reserve;grpc.(*ClientConn).Invoke;makeslice 25165824
main;metrics.flushLoop;prometheus.(*Registry).Gather;makeslice 8388608
main;http.(*conn).serve;bufio.NewReaderSize;makeslice 16777216

Specifications

Stacks
6
Unit
bytes
Total Bytes
173015040
Largest Stack Bytes
68157440
Max Depth
4
Note
same syntax as a CPU profile, different weight unit

Testing contract

Expected to pass
Scenario
Render the profile with an explicit byte unit and read the largest allocator.
Expected result
The JSON Unmarshal path reports 65 MiB rather than 68,157,440 samples, and the total matches the sum of the six stacks.

What is a .txt file?

TXT is a plain-text file containing unformatted character data with no styling or structure beyond line breaks. Its interpretation depends on character encoding, most commonly UTF-8, and on line-ending convention. It is the most universal and portable text container.

How to use this file

Use an example TXT to test encoding detection, line-ending (LF versus CRLF) handling, and any tool that reads or streams raw text input.

How to use this file for testing

“Allocation Profile — Folded Stacks Weighted in Bytes (txt)” is a deterministic Novus Examples fixture for Observability, Performance testing, Conversion testing. Structured and plain-text telemetry with known timestamps, levels, request identifiers, and error states for testing log ingestion, correlation, dashboards, and alert pipelines.

Documented properties for this file: TXT · 404 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Telemetry fixtures use fixed trace IDs, span IDs, and timestamps so ingestion is reproducible run to run. Point your collector, parser, or query layer at the file and assert the documented span tree, metric families, or severity mix; service and host names are invented.

Generated by generation/observability.py. Free for any use, no attribution required — license.