You need to sign in to do that
Don't have an account?
Heap Dump does not show for this.
Here is my method for which Heap dump displays successfully:
public Set<Pair> getSet()
{
Set<Pair> pairsSet = new Set<Pair>();
System.Debug('Debug2');
Pair p1 = new Pair(1,'One');
Pair p2 = new Pair(2,'Two');
pairsSet.add(p1);
pairsSet.add(p2);
return pairsSet;
}
Here is a slightly modified method and the HD does not display:
This is what i type in Anonymous view:
Pair p = new Pair(1,"Sai");
p.getSetWithDups();
Here is the method:
public Set<Pair> getSetWithDups()
{
Set<Pair> pairsSet = new Set<Pair>();
System.Debug('Debug2');
Pair p1 = new Pair(1,'One');
p1.Name='Sai';
Pair p2 = new Pair(2,'Two');
p2.Name='Sai';
pairsSet.add(p1);
pairsSet.add(p2);
return pairsSet;
}
Please help if there r any suggestions.
Thanks
Sai