Analyzer php-gco-ref
Name
php-gco-ref - PHP GC Object Reference Flame Graph
This analyzer traces object reference relationships in PHP’s garbage collection system. It captures the reference chains and memory ownership patterns of PHP objects, tracking how objects reference each other in memory. The analyzer generates flame graphs that visualize object reference hierarchies and memory consumption by object type, helping identify circular references, memory retention issues, and optimize object lifecycle management in PHP applications.
Resource Category
Memory.
Application Type & Technical Stack
- PHP
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 php-gco-ref -p PID
# trace a shell command directly
orxray analyzer run php-gco-ref -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Flame Graphs
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.