diff

Computes difference between two snapshots. To confirm that a particular operation doesn't leak, take a snapshot before and after the operation, and check that the diff doesn't contain any unexpected new ImageRefs.

Return

Difference between two snapshots

Parameters

firstSnapshot

Snapshot that was taken earlier

secondSnapshot

Snapshot that was taken later