Overview
Process Profiling is a system-level diagnostic tool that captures the state of the database processes over a period of time. Unlike Query Profiles, which focus on individual SQL execution, Process Profiles provide a holistic view of what the processes are doing, including background tasks, metadata management, and internal synchronization.Page Examples
The Proc Profile interface is integrated into the database Web UI under the proc profiles tab.Profile List View
The main page displays a list of collected profile files for the selected node. You can switch between FE and different BE nodes using the tabs at the top.
Flame Graph

- Each box represents a function (or method) call.
- The width of a box represents the amount of resources consumed by that function (such as CPU time, memory allocation frequency, or lock wait time). The wider the box, the more resources are consumed.
- Vertical stacking represents the calling relationship, with the bottom layer being the entry function and child functions stacked on top.
Use Scenarios
- CPU Hotspot Analysis: Identify which code paths or functions are consuming the most CPU cycles.
- Memory Allocation Profiling: Track where memory is being frequently allocated to find potential memory pressure sources.
- R&D Troubleshooting: Assist developers in analyzing complex bugs or performance regressions in production environments without needing external profiling tools.
Feature Description
How to Use
- Access: Open the database Web UI (default port 8030) and click on the proc profiles tab.
- Select Node: Choose the FE tab or a specific BE node tab.
- Visualize: Click the View link for any entry.
- For FE, it extracts and displays a pre-generated HTML flame graph.
- For BE, it may convert a raw
pproffile into an SVG flame graph on the fly (the first view might take a few seconds as it performs the conversion).
- Interact: Use the flame graph to zoom into specific call stacks, search for function names, or analyze stack depth.
Information Provided
- Type: CPU, Memory (Allocation), or Contention (BE only).
- Timestamp: When the profile collection was completed.
- File Size: Size of the compressed profile data.
- Flame Graph: A hierarchical visualization where the width of each box represents the relative resource consumption (CPU time, allocation frequency, or lock wait time).
Configuration
The profiling feature performs function-level sampling to generate flame graphs for visualization.Frontend (FE) Configuration
FE profiling is managed by an internal daemon and uses AsyncProfiler for data collection. You can configure these infe.conf.
Backend (BE) Configuration
BE profiles are collected using the built-in gperftools and are typically collected via a background script or manual triggers. The collected data is then converted into flame graphs using pprof.Configuration in be.conf
Manual BE Collection Options
Thecollect_be_profile.sh script supports the following command-line options: