Skip to content
Novus Examples
txt1.2 KB

CPU Profile — Folded Stacks, Baseline (txt)

A CPU profile in the folded-stack format every flamegraph tool reads: one line per unique stack, frames separated by semicolons, then a space and a sample count. Twelve stacks up to seven frames deep, with the runtime's GC and scheduler work included as real profiles have.

Preview — first 13 linestxt
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;checkout.price;pricing.applyDiscount 4120
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;checkout.price;pricing.lookupRate;sql.(*DB).QueryContext 2880
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;checkout.price;pricing.lookupRate;cache.Get 1440
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;encoding/json.Marshal;encoding/json.(*encodeState).marshal 3310
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;encoding/json.Unmarshal;encoding/json.(*decodeState).object 2190
main;runtime.main;http.ListenAndServe;http.(*conn).serve;checkout.Handle;inventory.Reserve;grpc.(*ClientConn).Invoke 1760
main;runtime.main;http.ListenAndServe;http.(*conn).serve;auth.Verify;crypto/ecdsa.Verify 980
main;runtime.main;http.ListenAndServe;http.(*conn).serve;middleware.Log;fmt.Sprintf 610
main;runtime.main;metrics.flushLoop;prometheus.(*Registry).Gather 540
main;runtime.main;runtime.gcBgMarkWorker;runtime.scanobject 1880
main;runtime.main;runtime.mcall;runtime.schedule;runtime.findRunnable 720
main;runtime.main;runtime.sysmon 130

Specifications

Stacks
12
Total Samples
20560
Format
collapsed/folded (semicolon-separated frames, space, count)
Max Depth
7
Unit
samples
Hottest Leaf
pricing.applyDiscount

Testing contract

Expected to pass
Scenario
Render the file as a flamegraph and read off the widest leaf.
Expected result
Twelve stacks totalling 20560 samples render into one flamegraph rooted at main, with pricing.applyDiscount the widest leaf at 20.0 percent of the profile.

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

“CPU Profile — Folded Stacks, Baseline (txt)” is a deterministic Novus Examples fixture for Observability, Performance testing, Log parsing. 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: collapsed/folded (semicolon-separated frames, space, count). 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.