Improved/extended information printed in profiles and plans

I wanted to measure the number of time a function is executed for instance. So i count when the iterator is opened or reset as this means a new execution.