Add profiling of diff manipulation