void scan(void) { for(uint8 i = 0; i<16; ++i) { ScanColumn(i); PrintColumn(i); } }
static void PrintGroup(ProfileGroup& group, const char* groupName, int& x, int& y) { int width, height; PrintColumn(group, groupName, kColName, x, y, width, height); x += width + 10; PrintColumn(group, "Avg", kColAvg, x, y, width, height); x += width + 10; PrintColumn(group, "Cur", kColValue, x, y, width, height); x += width + 10; PrintColumn(group, "Max", kColMax, x, y, width, height); x += width + 10; y += height; }
static void PrintLapGroup(ProfileGroup& group, const char* groupName, int& x, int& y, int min) { int width, height; if(min > 0) { PrintColumn(group, "Index", kColIndex, x, y, width, height, min); x += width + 10; } PrintColumn(group, "Avg", kColAvg, x, y, width, height); x += width + 10; PrintColumn(group, groupName, kColName, x, y, width, height); x += width + 10; PrintColumn(group, "Cur", kColValue, x, y, width, height); x += width + 10; y += height; }