separate file vs line profiling logic a bit