m();\rsize=strlen(string);\rstring2=(char*)malloc(size+1);\rfor(i=0;i<size;i++)\rstring2[size-1-i]=string;\rstring2[size]=''q\rfor(i=0;i<5000000;i++)\rsum+si;\rprintf("Thestringprintedbackwardis%s”,string2);\r$gcc-pg-ohellohello,c$./hello$gprofhelloImore!"R5pyzFlat\rprofile:Eachsamplecountsas0.01seconds.%cumulativeselfselftotaltime\rsecondssecondscalIsus/callus/callname69.230.090.09190000.00103333.33\rmy_print230.770.130.04313333.3313333.33count_sum0.000.130.0020.00\r13333.33my_print%MB
pX
??timeXp\rcumulativeBMBpXseconds(MBMBp\rX)selfMBpXseconds(MBpXP)\rcallsBselfMBpXus/calltotalMB\rMBus/callpXnameMBDR\nBRzJ\rmy_print()MB XJ¡C¢@count_sum()MBJRB0\r0.13.£¤;gprof!"p-.B¥¦JY§`¨©ª«Bp¬®¯yz°±²\r³#$+,´.