Skip to content

Interactive graphs#15

Draft
wentasah wants to merge 5 commits intomainfrom
graphs
Draft

Interactive graphs#15
wentasah wants to merge 5 commits intomainfrom
graphs

Conversation

@wentasah
Copy link
Copy Markdown
Collaborator

This branch serves for preparation of interactive graphing feature.

For now, the purpose of this PR is to record the history of what's happening with the branch. For example, I'm going to rebase it now and hopefully, it will be visible here.

Pavel-Sedlacek and others added 3 commits March 17, 2026 16:28
The primary use case of the analysis subcommand is to preprocess the
trace and store the results for later use - either by external tools
or the future graphing extensions of this tool. Loading and *parsing*
an entire `.json` file to render a chart for a single entry is
wasteful and takes unnecessarily long.

This PR allows to store analysis results to new binary format called
binary bundle. Data from the analyses is written to the _SQLite_
database. Each analysis stores the results in a separate sqlite table
with columns like `id`, various metadata (e.g. node and callback
name), and the actual data (e.g. callback durations). The data are
stored in sqlite as a binary blob generated by serializing the data
structure by `serde` and postcard (a compact and fast binary format).

For backward compatibility `--legacy-output` allows to switch back to
the old textual outputs.

A new command `extract` is added, which allows extracting data from
the binary bundle.

---------

Co-authored-by: Pavel Sedlacek <pavel.sedlacek@protonmail.com>
Co-authored-by: Michal Sojka <michal.sojka@cvut.cz>
@skoudmar skoudmar mentioned this pull request Mar 30, 2026
…lution

The panic was:

   The application panicked (crashed).
   Message:  no entry found for key
   Location: src/analyses/analysis/dependency_graph.rs:667
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.

3 participants