The loop is just not present there.
So leave the simple things for your compiler.
2. gprof wants you to recompile your code with an additional flag. collect and er_print (or analyzer instead of kprof) of sun studio can do the same without recompilation.
© 2014, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.