New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic memory diagnostic API #1969
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well this is clever!!! 🤲
Co-authored-by: Günther Foidl <gue@korporal.at>
…ImageSharp into af/memory-diagnostics
@gfoidl as always, thanks for the remarks! |
Co-authored-by: Günther Foidl <gue@korporal.at>
@@ -69,10 +68,16 @@ internal static void RaiseUndisposedMemoryResource(string allocationStackTrace) | |||
} | |||
|
|||
// Schedule on the ThreadPool, to avoid user callback messing up the finalizer thread. | |||
#if NETSTANDARD2_1 || NETCOREAPP2_1_OR_GREATER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. Thought I'd better wait until you'd seen this before merging. I'll let you do the honors when you're happy.
Prerequisites
Description
Resolves #1883. I went with the following API in the end, feels nicer and simpler: