Profiling of processDocument