Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

gcsummary

gcsummary( 
) 
=> t

Description

Prints a summary of memory allocation and garbage collection statistics in the current SKILL run.

Arguments

None

Value Returned

t

Always returns t.

Examples

************* SUMMARY OF MEMORY ALLOCATION *************
Maximum Process Size (i.e., voMemoryUsed) = 3589448
Total Number of Bytes Allocated by IL = 2366720
Total Number of Static Bytes = 1605632
-----------------------------------------------------------
Type Size Allocated Free Static GC count
-----------------------------------------------------------
list 12 339968 42744 1191936 9
fixnum 8 36864 36104 12288 0
flonum 16 4096 2800 20480 0
string 8 90112 75008 32768 0
symbol 28 0 0 303104 0
binary 16 0 0 8192 0
port 60 8192 7680 0 0
array 16 20480 8288 8192 0
wtype 16 16384 16224 0 0
TOTALS -- 516096 188848 1576960 9
-----------------------------------------------------------
User Type (ID) Allocated Free GC count
-----------------------------------------------------------
hiField (20) 8192 7504 0
hiToggleItem (21) 8192 7900 0
hiMenu (22) 8192 7524 0
hiMenuItem (23) 8192 5600 0
TOTALS -- 32768 28528 0
-----------------------------------------------------------
Bytes allocated for :
arrays = 38176
strings = 43912
strings(perm)= 68708
IL stack = 49140
(Internal) = 12288
TOTAL GC COUNT 9
----- Summary of Symbol Table Statistics -----
Total Number of Symbols = 11201
Hash Buckets Occupied = 4116 out of 4499
Average chain length = 2.721331
t

How to Interpret the Summary Report

Column Contains

Type

Data type names.

Size

Size of each atom representing the data type in bytes.

Allocated

Total number of bytes allocated in the pool for the data type.

Free

Number of bytes that are free and available for allocation.

Static

Memory allocated in static pools that are not subject to GC. This memory is usually generated when contexts are built. When variables are write protected, their contents are shifted to static pools.

GC Count

Number of GC cycles triggered because the pool for this data type was exhausted.

Related Topics

Debug Functions

profileSummary


Return to top
 ⠀
X