gc_control
Pause or resume the game's garbage collection during hooking to prevent observed objects from being reclaimed, then restore it after inspection to avoid memory growth.
Instructions
暂停/恢复游戏的 GC(垃圾回收)。
Hook 期间建议暂停 GC,避免正在观察的对象被回收掉。 观察结束后务必恢复(disable=False),否则游戏内存会持续增长。
标注上 idempotentHint=False:它是状态开关,disable=True 与
disable=False 是两个不同状态,且「开了没关」会让内存持续增长。
同参数重复调确实无额外影响,但把这个调用标成「幂等」会被客户端读成
「可以随便重试」—— 在一个已经暂停了 GC 的会话里那样做是错的。
探针卸载时会自动恢复 GC(见 agent.js 的 dispose),但那是兜底,
不该替代调用方自己恢复。
Args: disable: True 暂停 GC,False 恢复。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disable | No |