# ProfilerCategory

> Use to specify category for instrumentation Profiler markers.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Profiling](/engine/6000.7/script-reference/unity/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public readonly struct ProfilerCategory
```

## Remarks

```csharp
using Unity.Profiling;

public class MySystemClass
{
    static readonly ProfilerMarker s_SimulatePerfMarker = new ProfilerMarker(ProfilerCategory.Ai, "MySystem.Simulate");

    public void UpdateLogic()
    {
        using (s_SimulatePerfMarker.Auto())
        {
            // ...
        }
    }
}
```

Additional Resources: [ProfilerMarker](/engine/6000.7/script-reference/unity/profiling/profilermarker.md).

## Constructors

| Constructor                                                                                                                                                                                        | Description                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [ProfilerCategory(System.String)](/engine/6000.7/script-reference/unity/profiling/profilercategory/ctor.md#profilercategory\(string\))                                                             | Use to construct ProfilerCategory by category name. |
| [ProfilerCategory(System.String,Unity.Profiling.ProfilerCategoryColor)](/engine/6000.7/script-reference/unity/profiling/profilercategory/ctor.md#profilercategory\(string-profilercategorycolor\)) | Use to construct ProfilerCategory by category name. |

## Properties

| Property                                                                           | Description                   |
| ---------------------------------------------------------------------------------- | ----------------------------- |
| [Color](/engine/6000.7/script-reference/unity/profiling/profilercategory/color.md) | Gets Profiler category color. |
| [Name](/engine/6000.7/script-reference/unity/profiling/profilercategory/name.md)   | Gets Profiler category name.  |

## Static Properties

| Property                                                                                                 | Description                                           |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [Ai](/engine/6000.7/script-reference/unity/profiling/profilercategory/ai.md)                             | AI and NavMesh Profiler category.                     |
| [Animation](/engine/6000.7/script-reference/unity/profiling/profilercategory/animation.md)               | Animation Profiler category.                          |
| [Audio](/engine/6000.7/script-reference/unity/profiling/profilercategory/audio.md)                       | Audio system Profiler category.                       |
| [FileIO](/engine/6000.7/script-reference/unity/profiling/profilercategory/fileio.md)                     | File IO Profiler category.                            |
| [Gui](/engine/6000.7/script-reference/unity/profiling/profilercategory/gui.md)                           | UI Profiler category.                                 |
| [Input](/engine/6000.7/script-reference/unity/profiling/profilercategory/input.md)                       | Input system Profiler category.                       |
| [Internal](/engine/6000.7/script-reference/unity/profiling/profilercategory/internal.md)                 | Internal Unity systems Profiler category.             |
| [Lighting](/engine/6000.7/script-reference/unity/profiling/profilercategory/lighting.md)                 | Global Illumination Profiler category.                |
| [Loading](/engine/6000.7/script-reference/unity/profiling/profilercategory/loading.md)                   | Loading system Profiler category.                     |
| [Memory](/engine/6000.7/script-reference/unity/profiling/profilercategory/memory.md)                     | Memory allocation Profiler category.                  |
| [Network](/engine/6000.7/script-reference/unity/profiling/profilercategory/network.md)                   | Networking system Profiler category.                  |
| [Particles](/engine/6000.7/script-reference/unity/profiling/profilercategory/particles.md)               | Particle system Profiler category.                    |
| [Physics](/engine/6000.7/script-reference/unity/profiling/profilercategory/physics.md)                   | Physics system Profiler category.                     |
| [Physics2D](/engine/6000.7/script-reference/unity/profiling/profilercategory/physics2d.md)               | The Physics 2D system category for the Profiler.      |
| [PhysicsCore2D](/engine/6000.7/script-reference/unity/profiling/profilercategory/physicscore2d.md)       | The Physics Core 2D system category for the Profiler. |
| [Render](/engine/6000.7/script-reference/unity/profiling/profilercategory/render.md)                     | Rendering system Profiler category.                   |
| [Scripts](/engine/6000.7/script-reference/unity/profiling/profilercategory/scripts.md)                   | Generic C# code Profiler category.                    |
| [U2D](/engine/6000.7/script-reference/unity/profiling/profilercategory/u2d.md)                           | 2D Profiler category.                                 |
| [UIToolkit](/engine/6000.7/script-reference/unity/profiling/profilercategory/uitoolkit.md)               | UI Toolkit Profiler category.                         |
| [Video](/engine/6000.7/script-reference/unity/profiling/profilercategory/video.md)                       | Video system Profiler category.                       |
| [VirtualTexturing](/engine/6000.7/script-reference/unity/profiling/profilercategory/virtualtexturing.md) | Virtual Texturing system Profiler category.           |
| [Vr](/engine/6000.7/script-reference/unity/profiling/profilercategory/vr.md)                             | VR systen Profiler category.                          |
