Analyzer py-gco-stat
Name
py-gco-stat - Statistics for Python GC Objects
This analyzer collects statistics on Python garbage collection objects to analyze memory usage patterns. It tracks the number and types of objects managed by Python’s garbage collector, providing insights into memory allocation behavior. The analyzer generates pie charts that visualize object distribution by type, helping identify memory leaks, excessive object creation, and memory optimization opportunities in Python applications.
Resource Category
Memory.
Application Type & Technical Stack
- Python
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 py-gco-stat -p PID
# trace a shell command directly
orxray analyzer run py-gco-stat -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Pie Charts
- Plain Texts
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.