Analyzer c-memory-leak-fgraph

Name

c-memory-leak-fgraph - C-Land Memory Leak Flame Graphs

Resource Category

Memory.

Application Type & Technical Stack

  • C/C++

Parameters

The following parameters (or global variables) can be overridden by the user when running the analyzer or tool:

sample_time

Type: int

Description: total sampling time in seconds

Default Value: 30

silence_time

Type: int

Description: total silence time(only accept free) in seconds

Default Value: 5

min_chunk_sz

Type: int

Description: min chunk size in bytes

Default Value: 0

max_chunk_sz

Type: int

Description: max chunk size in bytes

Default Value: 65536

show_by_allocation_count

Type: int

Description: show by allocation count(default: allocation size)

Default Value: 0

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 c-memory-leak-fgraph -p PID

# trace a shell command directly
orxray analyzer run c-memory-leak-fgraph -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run c-memory-leak-fgraph -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run c-memory-leak-fgraph --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.