Emit more statistics during Perm construction.
Set up context when emitting Perm statistics.