Analyzer libc-chunks
Name
libc-chunks - Distributions of Memory Chunk Sizes of the Memory Allocator
This analyzer profiles memory allocation patterns by capturing the distribution of memory chunk sizes requested from the system memory allocator (such as glibc malloc or jemalloc). It samples memory allocation calls and records the sizes of allocated chunks. The analyzer generates histogram charts that show the frequency distribution of different allocation sizes, helping identify memory usage patterns, detect unusual allocation behaviors, and optimize memory allocation strategies in C/C++ applications.
Resource Category
Memory.
Application Type & Technical Stack
- All
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run libc-chunks -p PID
# trace a shell command directly
orxray analyzer run libc-chunks -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Histogram Bar Charts
- Plain Texts
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.