Skip to content

Flamegraph visualisers improvements - #23241

Open
albfsg wants to merge 2 commits into
root-project:masterfrom
albfsg:print_disk_profile
Open

Flamegraph visualisers improvements#23241
albfsg wants to merge 2 commits into
root-project:masterfrom
albfsg:print_disk_profile

Conversation

@albfsg

@albfsg albfsg commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

  • Fixed an issue where checksums were not counted as a proper part of a page (concerns PrintDiskProfile)
  • Updated the API for PrintDiskProfile and PrintSchemaProfile to include a default format parameter (concerns both methods)

Checklist:

  • tested changes locally
  • updated the docs (if necessary) <- not necessary

This PR fixes #

@silverweed silverweed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Previously checksums where not represented in the method.

Now they are counted as part of a page.
In this way user can call these methods as:

```cpp
inspector->PrintSchemaProfile()
```

instead of:

```cpp
inspector->PrintSchemaProfile(
    ROOT::Experimental::ESchemaProfileFormat::kSpeedscopeJSON)
```

Swap the order of the `format` and `output` parameters.

Specifying where to write the profile without caring about the
format is probably a more common use case than caring about the
format (which currently has no alternatives anyway) while not
caring where the output goes.
@albfsg
albfsg force-pushed the print_disk_profile branch from f46eb16 to 92d9719 Compare September 3, 2026 06:52

@jblomer jblomer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 10h 31m 28s ⏱️
 3 861 tests  3 859 ✅ 0 💤 2 ❌
75 890 runs  75 882 ✅ 6 💤 2 ❌

For more details on these failures, see this check.

Results for commit 92d9719.

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