# GetSampleFlowEvents(int, List<FlowEvent>)

> Gets the flow events that originate from the specific sample.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Profiling](/engine/6000.6/script-reference/unityeditor/profiling.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void GetSampleFlowEvents(int sampleIndex, List<RawFrameDataView.FlowEvent> outFlowEvents)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the Profiler sample.**** (\[List\<FlowEvent>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): Returns the list of profiler flow events for the sample in the current frame and thread.
