You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/09/28 13:27:20 UTC

(pulsar) 16/16: [docs][test] Polish quack_flamegraph analysis instructions

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch lh-perf-agents-guide-links
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit fb2bad4ec0bf8fb2fa1736e1cea0622a2f59e994
Author: Lari Hotari <lh...@apache.org>
AuthorDate: Mon Sep 28 16:25:37 2026 +0300

    [docs][test] Polish quack_flamegraph analysis instructions
    
    Assisted-by: Codex
---
 tests/performance/docs/analyzing-profiles.md | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/performance/docs/analyzing-profiles.md b/tests/performance/docs/analyzing-profiles.md
index 2c71f1defa8b..a603f4c14f58 100644
--- a/tests/performance/docs/analyzing-profiles.md
+++ b/tests/performance/docs/analyzing-profiles.md
@@ -223,11 +223,11 @@ LIMIT 45;
 
 ### Analysing collapsed stacktrace files with quack_flamegraph
 
-AI agents can automate analysis by building DuckDB queries with views and queries that join data in usable ways.
-Some example commands. The view above was a way to compose quack_flamegraph's functions to build other ways to query the data.
-Filtering with additional where queries to filter out false-positives is something that an AI agent can do to drill down into the data.
+AI agents can automate analysis by combining quack_flamegraph's functions in DuckDB queries and views, as the
+`leaf_by_frame` view above demonstrates. They can join results and add `WHERE` clauses to narrow the analysis,
+exclude irrelevant matches, and investigate specific call paths.
 
-Examples:
+For example, this command ranks stacks whose leaf frames match the filter and prints the results as JSON:
 
 ```sql
 duckdb -json \
@@ -242,7 +242,8 @@ LIMIT 45;
 "
 ```
 
-Store the leaf_by_frame view to a file called `quack_flamegraph_views.sql` when using the leaf_by_frame view described above.
+To use the `leaf_by_frame` view from the command line, save its definition above in `quack_flamegraph_views.sql`,
+then load it before running the query:
 
 ```sql
 duckdb -json \