/// <summary> /// Start tracing the application and return an EventPipeSession object /// </summary> /// <param name="provider">An EventPipeProvider to turn on.</param> /// <param name="requestRundown">If true, request rundown events from the runtime</param> /// <param name="circularBufferMB">The size of the runtime's buffer for collecting events in MB</param> /// <returns> /// An EventPipeSession object representing the EventPipe session that just started. /// </returns> public EventPipeSession StartEventPipeSession(EventPipeProvider provider, bool requestRundown = true, int circularBufferMB = 256) { return(EventPipeSession.Start(_endpoint, new[] { provider }, requestRundown, circularBufferMB)); }
/// <summary> /// Start tracing the application and return an EventPipeSession object /// </summary> /// <param name="providers">An IEnumerable containing the list of Providers to turn on.</param> /// <param name="requestRundown">If true, request rundown events from the runtime</param> /// <param name="circularBufferMB">The size of the runtime's buffer for collecting events in MB</param> /// <returns> /// An EventPipeSession object representing the EventPipe session that just started. /// </returns> public EventPipeSession StartEventPipeSession(IEnumerable <EventPipeProvider> providers, bool requestRundown = true, int circularBufferMB = 256) { return(EventPipeSession.Start(_endpoint, providers, requestRundown, circularBufferMB)); }