add more logging to the profiling