/// <summary>
/// Starts profiling in the current context.
/// </summary>
/// <remarks>
/// Requires an active script context.
/// </remarks>
/// <param name="callback">The profiling callback to use.</param>
/// <param name="eventMask">The profiling events to callback with.</param>
/// <param name="context">A context to pass to the profiling callback.</param>
public static void StartProfiling(Native.IActiveScriptProfilerCallback callback, Native.ProfilerEventMask eventMask, int context)
{
Native.ThrowIfError(Native.JsStartProfiling(callback, eventMask, context));
}