MsieJavaScriptEngine.JsRt.Native.JsStartProfiling C# (CSharp) Method

JsStartProfiling() private method

private JsStartProfiling ( IActiveScriptProfilerCallback callback, ProfilerEventMask eventMask, int context ) : JavaScriptErrorCode
callback IActiveScriptProfilerCallback
eventMask ProfilerEventMask
context int
return JavaScriptErrorCode
        internal static extern JavaScriptErrorCode JsStartProfiling(IActiveScriptProfilerCallback callback, ProfilerEventMask eventMask, int context);

Usage Example

 /// <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));
 }
Native