Skip to content

Instantly share code, notes, and snippets.

@neuecc
Created June 3, 2021 16:08
Show Gist options
  • Save neuecc/06e7bd724ab247c99b2cf178b57c8a95 to your computer and use it in GitHub Desktop.
Save neuecc/06e7bd724ab247c99b2cf178b57c8a95 to your computer and use it in GitHub Desktop.
public sealed class MessagePipeDiagnosticsInfo
{
/// <summary>Get current subscribed count.</summary>
public int SubscribeCount { get; }
/// <summary>
/// When MessagePipeOptions.EnableCaptureStackTrace is enabled, list all stacktrace on subscribe.
/// </summary>
public StackTraceInfo[] GetCapturedStackTraces(bool ascending = true);
/// <summary>
/// When MessagePipeOptions.EnableCaptureStackTrace is enabled, groped by caller of subscribe.
/// </summary>
public ILookup<string, StackTraceInfo> GetGroupedByCaller(bool ascending = true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment