using System;
using UnityEngine.Profiling;
namespace UnityEngine.ResourceManagement.Profiling
{
///
/// The profiler emitter for Addressables data
///
public class EngineEmitter : IProfilerEmitter
{
///
/// Checks if the profiler is enabled
///
public bool IsEnabled
{
get => Profiler.enabled;
}
///
/// Emits the frame data for the profiler
///
/// The GUID of the profiler
/// tag indicating what type of data is being emitted
/// The data contents to send to the profiler
public void EmitFrameMetaData(Guid id, int tag, Array data)
{
Profiler.EmitFrameMetaData(id, tag, data);
}
///
/// Adds a callback to the MonoBehaviourCallbackHooks instance
///
/// The callback to invoke
public void InitialiseCallbacks(Action d)
{
MonoBehaviourCallbackHooks.Instance.OnLateUpdateDelegate += d;
}
}
}