JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Compare Snapshots

Last modified: 21 March 2024

Comparing snapshots taken within one session is a useful technique that gives a direct answer on a question "What objects cause a memory leak in my app?" The idea behind comparing snapshots is quite simple: you take two snapshots, one of which is used as a basis for comparison (it is always the one that was taken earlier).

The Comparison view provides details on how many objects were created between snapshots and how many objects were collected. If a class should not have new instances, but it does, than it is, probably, the cause of the leak.