Пример #1
0
 /// <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>
 /// <param name="token">The token to monitor for cancellation requests.</param>
 /// <returns>
 /// An EventPipeSession object representing the EventPipe session that just started.
 /// </returns>
 internal Task <EventPipeSession> StartEventPipeSessionAsync(IEnumerable <EventPipeProvider> providers, bool requestRundown, int circularBufferMB, CancellationToken token)
 {
     return(EventPipeSession.StartAsync(_endpoint, providers, requestRundown, circularBufferMB, token));
 }
Пример #2
0
 /// <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>
 /// <param name="token">The token to monitor for cancellation requests.</param>
 /// <returns>
 /// An EventPipeSession object representing the EventPipe session that just started.
 /// </returns>
 internal Task <EventPipeSession> StartEventPipeSessionAsync(EventPipeProvider provider, bool requestRundown, int circularBufferMB, CancellationToken token)
 {
     return(EventPipeSession.StartAsync(_endpoint, new[] { provider }, requestRundown, circularBufferMB, token));
 }