This question is locked. New answers and comments are not allowed.
I want to investigate memory usage after my app reaches a certain checkpoint. In particular, I want to see any memory allocations made *after* this checkpoint that make it to Gen2. I'm trialling JustTrace, as the "Instances Diff" with "Accurate Object Age" seems ideal for this.
However, my app behaves differently when profiled with "Accurate Object Age" is enabled. My app diverts to an error handling branch and thus never reaches the checkpoint.
(My app performs various deterministic calculations, the only user interaction is a Console.ReadLine() where I want to take the snapshots. Thus there should be no variation in behaviour between runs)
If I run the app alone, or run it via the JustTrace memory profiler either with or without "Collect allocation call stacks" enabled, then it works exactly as expected. But the "Accurate Object Age" feature appears to break things.
However, my app behaves differently when profiled with "Accurate Object Age" is enabled. My app diverts to an error handling branch and thus never reaches the checkpoint.
(My app performs various deterministic calculations, the only user interaction is a Console.ReadLine() where I want to take the snapshots. Thus there should be no variation in behaviour between runs)
If I run the app alone, or run it via the JustTrace memory profiler either with or without "Collect allocation call stacks" enabled, then it works exactly as expected. But the "Accurate Object Age" feature appears to break things.