adding profiling into index and ST iterators