ToArray()
Use to convert collected samples to an array.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Profiling
- Assembly: UnityEngine.CoreModule
public ProfilerRecorderSample[] ToArray()
Returns
Type | Description |
|---|---|
| ProfilerRecorderSample[] |
Remarks
Note: Accessing this method allocates a new managed array on every access, which contributes to GC allocated memory. As such, this might slow down the performance of your application.