Log performance statistics when trace logging enabled.