# MarkerFlags

> Profiler marker usage flags.

## Definition

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

```csharp
[Flags]
public enum MarkerFlags : ushort
```

## Remarks

Use to specify marker usage or availability information.

## Examples

```csharp
using System.Collections.Generic;
using Unity.Profiling.LowLevel;
using Unity.Profiling.LowLevel.Unsafe;

public class Example
{
    public static unsafe void WriteAllNonDevelopmentStatsToFile(string filePath)
    {
        using (var writer = new System.IO.StreamWriter(filePath))
        {
            var availableStatHandles = new List<ProfilerRecorderHandle>();
            ProfilerRecorderHandle.GetAvailable(availableStatHandles);
            foreach (var h in availableStatHandles)
            {
                var statDesc = ProfilerRecorderHandle.GetDescription(h);
                if (!statDesc.Flags.HasFlag(MarkerFlags.AvailabilityNonDevelopment))
                    continue;

                var name = System.Text.Encoding.UTF8.GetString(statDesc.NameUtf8, statDesc.NameUtf8Len);
                writer.WriteLine($"{name};{statDesc.Flags}");
            }
        }
    }
}
```

## Fields

| Value                                                                                                                            | Description                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AvailabilityEditor](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/availabilityeditor.md)                 | Specifies that marker is present only in the Editor.                                                                                                                           |
| [AvailabilityNonDevelopment](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/availabilitynondevelopment.md) | Specifies that marker is present in non-development Players.                                                                                                                   |
| [Counter](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/counter.md)                                       | Marker represents a counter.                                                                                                                                                   |
| [Default](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/default.md)                                       | Default value for markers created in native code.                                                                                                                              |
| [SampleGPU](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/samplegpu.md)                                   | Specifies that marker is capable of capturing GPU timings.                                                                                                                     |
| [Script](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/script.md)                                         | Marker is created by scripting code.                                                                                                                                           |
| [ScriptDeepProfiler](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/scriptdeepprofiler.md)                 | Specifies that marker is generated by deep profiling.                                                                                                                          |
| [ScriptInvoke](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/scriptinvoke.md)                             | Specifies that marker is generated by invocation of scripting method from native code.                                                                                         |
| [VerbosityAdvanced](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/verbosityadvanced.md)                   | Marker is intended for advanced profiling activities                                                                                                                           |
| [VerbosityDebug](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/verbositydebug.md)                         | Used internally by Unity.                                                                                                                                                      |
| [VerbosityExternal](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/verbosityexternal.md)                   | For external profiler integrations that do not capture all markers by default (such as for the Superluminal profiler) setting this flag will make the Sampler visible to them. |
| [VerbosityInternal](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/verbosityinternal.md)                   | Used internally by Unity. Profiler markers with this flag set are not displayed in the Unity Profiler.                                                                         |
| [Warning](/engine/6000.6/script-reference/unity/profiling/lowlevel/markerflags/warning.md)                                       | Specifies that marker highlights performance suboptimal behavior.                                                                                                              |
