Skip to content

Instantly share code, notes, and snippets.

@HungMingWu
Created October 4, 2012 11:53
Show Gist options
  • Save HungMingWu/3833148 to your computer and use it in GitHub Desktop.
Save HungMingWu/3833148 to your computer and use it in GitHub Desktop.
Example for gprof
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