From 1982b64c3686ae5eb9d47368117837ec8ef58d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Benjamin=20Antal?= Date: Thu, 16 Jan 2025 15:58:50 +0100 Subject: [PATCH] Update profiling-clickhouse-with-llvm-xray.md --- knowledgebase/profiling-clickhouse-with-llvm-xray.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledgebase/profiling-clickhouse-with-llvm-xray.md b/knowledgebase/profiling-clickhouse-with-llvm-xray.md index 4dafc5ec3ee..98ff8118ba7 100644 --- a/knowledgebase/profiling-clickhouse-with-llvm-xray.md +++ b/knowledgebase/profiling-clickhouse-with-llvm-xray.md @@ -127,7 +127,7 @@ generating a flamegraph and a sandwich view of your data. 1. Pass `-DENABLE_XRAY=1` to `cmake` when building ClickHouse. This [sets the proper compiler flags](https://github.com/ClickHouse/ClickHouse/blob/9caac43b2aa5e7c5474a87b7596dea95f5a2569a/cmake/xray_instrumentation.cmake). -2. Set `XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic verbosity=1` env var when running +2. Set `XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic verbosity=1"` env var when running ClickHouse to generate the trace. 3. Convert the trace to an interesting format such as trace event: `llvm-xray convert --symbolize --instr_map=./build/programs/clickhouse --output-format=trace_event xray-log.clickhouse.ZqKprE |