Skip to content

ProfilerDiagnosticObserver memory grows indefinitely until System.OutOfMemoryException occurs #127

Closed Answered by mythz
LEIRONGHUA asked this question in Q&A
Discussion options

You must be logged in to vote

Neither Profiling or RecyclableMemoryStream.cs has been touched for a number of releases. But it should only be used during development as it taps into and enables into a .NET's diagnostics event system and retains a rolling list of 10,000 events (overridable in ProfilingFeature.Capacity) that's used in the Admin Profiling UI.

As such we only recommend using it during development, which you can enable with:

host.Plugins.AddIfDebug(new ProfilingFeature {
    //...
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@LEIRONGHUA
Comment options

Answer selected by LEIRONGHUA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants