Add debug information when profiling
Merge pull request #2481 from samoht/prof

Add debug information when profiling