Question
When profiling a C# application, it may be necessary to examine how the target application works with unmanaged memory. How can I profile native memory allocations with dotTrace?
Answer
-
Enable "Collect native allocations" options under Timeline profiling options
-
(optional) Enable "Collect only unreleased allocations" to limit data collection to allocations that were still in the unmanaged heap at the moment of taking the snapshot
-
Run the profiling session and collect a snapshot
-
Open the snapshot in dotTrace
-
Use Native Allocations event filter to show only native allocations in the timeline viewer
Comments
0 comments
Please sign in to leave a comment.