GBClassCountLogger

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Utility to snapshot and diff class instance counts within the active scene tree. NOTE: This only inspects Nodes reachable from the scene tree root. Orphan/leaked nodes that are completely detached will not be seen here, but overall object count deltas (Performance.OBJECT_COUNT) are also captured for context.

Source File: /addons/grid_building/test/utilities/diagnostics/class_count_logger.gd

Extends: RefCounted

Public Methods

snapshot_tree

1
snapshot_tree(root: Node) -> Dictionary[String, int]

Recursively counts node classes under the provided root.


diff_increases

1
2
3
4
diff_increases(
    old_counts: Dictionary[String, int],
    new_counts: Dictionary[String, int]
) -> Dictionary[String, int]

Returns classes whose count increased (positive diff) between old_counts and new_counts.


total_object_count

1
total_object_count() -> int

Returns total object count (all Object instances) if monitor available, else -1.


Private Methods

_count_classes

1
2
3
4
_count_classes(
    node: Node,
    counts: Dictionary[String, int]
) -> void

Flags: private



Grid Building v5.0.8 | Generated 24/05/2026