Method CollectGarbage
CollectGarbage()
Triggers garbage collection in the application and logs statistics before and after the collection.
Declaration
Task CollectGarbage()
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |
Examples
Example usage:
await performanceMetricsAddon.CollectGarbage();