# CollectFromAllThreads()

> Configures the recorder to collect samples from all threads.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Profiling](/engine/6000.5/script-reference/unityengine/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void CollectFromAllThreads()
```

### Remarks

A recorder collects sample data from all threads by default, but if you have configured it to collect from only a single thread using [Recorder.FilterToCurrentThread](/engine/6000.5/script-reference/unityengine/profiling/recorder/filtertocurrentthread.md), then you can call this method afterwards to resume collection from all threads.
