Skip to main content
RustDocs

Gc.Collect

gc.collect

Attributes

Help
(Generated) Triggers an immediate full managed garbage collection pass; useful after large allocations for memory profiling
ServerUser
No
Client
No
Server
Yes
Raw JSON
{
  "Help": "(Generated) Triggers an immediate full managed garbage collection pass; useful after large allocations for memory profiling",
  "ServerUser": false,
  "Client": false,
  "Server": true
}