# Get(string)

> Use this function to get a Recorder for the specific Profiler label.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Profiling](/engine/6000.0/script-reference/unityengine/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Recorder Get(string samplerName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Sampler name.

### Returns

| Type                                                                          | Description                                                                                                     |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [Recorder](/engine/6000.0/script-reference/unityengine/profiling/recorder.md) | [Recorder](/engine/6000.0/script-reference/unityengine/profiling/recorder.md) object for the specified Sampler. |

### Remarks

```csharp
using UnityEngine;
using UnityEngine.Profiling;

public class ExampleClass : MonoBehaviour
{
    Recorder behaviourUpdateRecorder;
    void Start()
    {
        behaviourUpdateRecorder = Recorder.Get("BehaviourUpdate");
        behaviourUpdateRecorder.enabled = true;
    }

    void Update()
    {
        if (behaviourUpdateRecorder.isValid)
            Debug.Log("BehaviourUpdate time: " + behaviourUpdateRecorder.elapsedNanoseconds);
    }
}
```

Additional Resources: [Sampler](/engine/6000.0/script-reference/unityengine/profiling/sampler.md), [Sampler.GetRecorder](/engine/6000.0/script-reference/unityengine/profiling/sampler/getrecorder.md).
