# GetMarkerName(int)

> Gets Profiler marker name for the specific marker identifier.

## Definition

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

```csharp
public string GetMarkerName(int markerId)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Marker identifier.

### Returns

| Type                                                           | Description                                                   |
| -------------------------------------------------------------- | ------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Returns marker name. Returns *null* if identifier is unknown. |

### Remarks

The Profiler uses unique identifier for each marker created during profiling session. Marker can generate many samples which [HierarchyFrameDataView](/engine/6000.3/script-reference/unityeditor/profiling/hierarchyframedataview.md) and [RawFrameDataView](/engine/6000.3/script-reference/unityeditor/profiling/rawframedataview.md) provide access for.

All samples generated by the same marker have the same integer marker identifier and the same name.

Marker identifiers are persistent for the entire profiling session.

**Throws:**

*System.ArgumentException* if *markerId* is invalid.

Additional Resources: [FrameDataView.GetMarkerId](/engine/6000.3/script-reference/unityeditor/profiling/framedataview/getmarkerid.md).
