actors.memory module

class actors.memory.MemoryActor(*args, **kwargs)

Bases: Actor

https://github.com/mozilla/gecko-dev/blob/master/devtools/shared/specs/memory.js

attach()
detach()
force_cycle_collection()
force_garbage_collection()
get_allocations()
get_allocations_settings()
get_state()
measure()
resident_unique()
save_heap_snapshot(boundaries: dict | None = None)

It seems like it will be handled automatically if no arguments are passed. A wireshark rdp session also doesn’t pass any additional arguments nor any toggleable functions exists in the menu. I belive for many cases the snapshot should be ideal in the end. https://github.com/mozilla/gecko-dev/blob/d36cf98aa85f24ceefd07521b3d16b9edd2abcb7/devtools/shared/heapsnapshot/tests/xpcshell/test_SaveHeapSnapshot.js https://github.com/mozilla/gecko-dev/blob/d36cf98aa85f24ceefd07521b3d16b9edd2abcb7/devtools/server/performance/memory.js#L170 https://github.com/mozilla/gecko-dev/blob/d36cf98aa85f24ceefd07521b3d16b9edd2abcb7/devtools/server/performance/memory.js#L170

start_recording_allocations(probability: float | None = None, max_log_length: int | None = None)
stop_recording_allocations()
take_census()