Basic setup for profiling

This fixes the examples so they will build and adds a PROFILE
option to the CMakeFile that enabled gprof info on non-Windows
This commit is contained in:
Russell Belfer
2012-05-17 13:05:17 -07:00
parent db756d5898
commit 706a9974a2
3 changed files with 13 additions and 2 deletions

View File

@@ -61,7 +61,13 @@ char *colors[] = {
"\033[36m" /* cyan */
};
int printer(void *data, char usage, const char *line)
int printer(
void *data,
git_diff_delta *delta,
git_diff_range *range,
char usage,
const char *line,
size_t line_len)
{
int *last_color = data, color = 0;