Added Metrics Logging in Profiling