Created
October 4, 2012 11:53
-
-
Save HungMingWu/3833148 to your computer and use it in GitHub Desktop.
Example for gprof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int IsOdd(int x) | |
{ | |
return x & 1; | |
} | |
int main(int argc, char *argv[]) | |
{ | |
for (int i = 0; i < 1000; i++) IsOdd(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment