>gprof -p -b main>mainThe results of the flat profile: [[File:Profileresults.fltpng]]
The results of the flat profile:
Flat profile:
Out of all the functions tested, rotateImage takes up the largest amount of timeRotate image looks like it has potential for parallelization. Below is the code for rotateImage:
void Image::rotateImage(int theta, Image& oldImage)