Analyzer d-newgco-size

Name

d-newgco-size - D GC Object Allocation Size Flame Graph

This analyzer profiles the size of garbage collection object allocations in D language applications. It captures stack traces at object allocation sites and tracks the total bytes allocated. The analyzer generates flame graphs that visualize memory allocation volume across different code paths, helping identify large object allocations, memory-intensive operations, and heap memory consumption patterns in D applications.

Resource Category

Memory.

Application Type & Technical Stack

  • Dlang

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 d-newgco-size -p PID

# trace a shell command directly
orxray analyzer run d-newgco-size -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run d-newgco-size -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run d-newgco-size --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Flame Graphs

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.