trace: measure where the time is spent in the index-heavy operations