Repository navigation
Render the grouped profile a 2.x engine writes - #810
Open
evertlammerts wants to merge 8 commits into
Open
evertlammerts wants to merge 8 commits into
evertlammerts wants to merge 8 commits into
Conversation
… detect the flat format by shape, pin the tree nesting
…th bound per platform
…n the tree test parser
…e decompress name in the profiler tests
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #752.
python -m duckdb.query_graphfails on every profile a DuckDB 2.x engine writes, and the command the profiling docs show is refused before it reads the file. The same failure through the Python API:Since 2.0 the engine writes the profile grouped, with
query,ioandsystemobjects and anoperatorlist, while the renderer still reads the flat keys of 1.x such aslatencyandchildren. Its command line takes the path only as--profile_input, so the documentedpython -m duckdb.query_graph profile.jsonis a usage error.--profile_input.--no-openwrites the page without opening a browser. A missing path is a usage error, and a file that is not a profile or a failed write ends in one line instead of a traceback.__init__.py, so-mno longer warns about a double import, and mypy now checks it.A flat profile, written by DuckDB 1.x or by 2.x under
SET legacy_metrics_format = true, is now refused with a message that names that setting; on main a saved 1.x profile still renders.tests/fast/test_profiler.pybuilds its profiles with the running engine and pins the metric grid, the tree as a browser nests it, the escaping, profiles that track few metrics, every refused input and each command line form. 53 of its 55 cases fail on main.The release line
v2.0-cyanopterahas the same defect, and the fix should be ported there.