# CreateFlow(ushort)

> Create a new Profiler flow identifier.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Profiling.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/profiling/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static uint CreateFlow(ushort categoryId)
```

### Parameters

**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)):&#x20;

### Returns

| Type                                                         | Description              |
| ------------------------------------------------------------ | ------------------------ |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | Returns flow identifier. |

### Remarks

Use Profiler flow to highlight dependencies in multithreaded code.

Additional Resources: [ProfilerUnsafeUtility.FlowEvent](/engine/6000.7/script-reference/unity/profiling/lowlevel/unsafe/profilerunsafeutility/flowevent.md), CPU Usage Profiler module.
