Skip to content

feat: clltk export - Chrome/Perfetto trace event JSON#34

Merged
Jo5ta merged 4 commits into
mainfrom
feat/export
Jul 11, 2026
Merged

feat: clltk export - Chrome/Perfetto trace event JSON#34
Jo5ta merged 4 commits into
mainfrom
feat/export

Conversation

@Jo5ta

@Jo5ta Jo5ta commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Stack 5/7 — based on the spans PR.

clltk export converts decoded traces to Chrome trace event JSON loadable in Perfetto / chrome://tracing: tracepoints as instant events, spans as async begin/end pairs correlated by id, buffers as categories.

Integrated: command-line docs, export validation against the golden fixtures. Version 1.5.1.

Jo5ta added 4 commits July 11, 2026 00:26
New export subcommand converts trace files (or directories and snapshot
archives, with the same recursive and filter options as decode) into
Chrome trace event JSON that opens directly in ui.perfetto.dev:
tracepoints become instant events with file/line args, span begin/end
become async event pairs correlated by the carryable span id, so spans
render as tracks even across threads, and spans that never ended stay
visibly open.

The decoder library gains a typed span_info() accessor on Tracepoint
(id, parent, name) so consumers do not parse rendered message strings.

Signed-off-by: Jo5ta <jo5ta@mail.de>
The export tests validate the generated JSON structurally against the
golden span fixtures on both byte orders: event counts, begin/end
pairing by id, the parent relation, timestamp ordering, and source
location args - plus a fixture without spans. README gains the
ui.perfetto.dev walkthrough. CTF export is recorded in the roadmap as a
follow-up (TSDL metadata generation earns its complexity only on
concrete demand).

Signed-off-by: Jo5ta <jo5ta@mail.de>
Base automatically changed from feat/spans to main July 11, 2026 09:43
@Jo5ta Jo5ta merged commit bfea2d6 into main Jul 11, 2026
7 checks passed
@Jo5ta Jo5ta deleted the feat/export branch July 11, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant