unity/EditorPlugin/SinceUnity.2022.3/Profiler/Adapters/UnityApiBasedAdapters/UnityApiProfilerSnapshotDriverAdapter.cs (14 lines of code) (raw):
#nullable enable
using JetBrains.Rider.Unity.Editor.Profiler.Adapters.Interfaces;
using UnityEditorInternal;
namespace JetBrains.Rider.Unity.Editor.Profiler.Adapters.UnityApiBasedAdapters
{
public class UnityApiProfilerSnapshotDriverAdapter : IProfilerSnapshotDriverAdapter
{
public IRawFrameDataViewAdapter? GetRawFrameDataView(int frameIndex, int threadIndex)
{
var rawFrameDataView = ProfilerDriver.GetRawFrameDataView(frameIndex, threadIndex);
return new UnityApiRawFrameDataViewAdapter(rawFrameDataView);
}
}
}