mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
intel_gpu_top: Print stats lines even when there's no done bit on the line.
This commit is contained in:
parent
9271e2256d
commit
bcaea4da89
@ -375,18 +375,17 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
printf("%30s %s\n\n", "task", "percent busy");
|
printf("%30s %s\n\n", "task", "percent busy");
|
||||||
for (i = 0; i < num_instdone_bits; i++) {
|
for (i = 0; i < num_instdone_bits; i++) {
|
||||||
if (top_bits_sorted[i]->count < 1)
|
if (top_bits_sorted[i]->count > 0 && i < max_lines) {
|
||||||
break;
|
percent = top_bits_sorted[i]->count /
|
||||||
|
SAMPLES_TO_PERCENT_RATIO;
|
||||||
if (i < max_lines) {
|
|
||||||
percent = top_bits_sorted[i]->count / SAMPLES_TO_PERCENT_RATIO;
|
|
||||||
len = printf("%30s: %3d%%: ",
|
len = printf("%30s: %3d%%: ",
|
||||||
top_bits_sorted[i]->bit->name,
|
top_bits_sorted[i]->bit->name,
|
||||||
percent);
|
percent);
|
||||||
print_percentage_bar (percent, len);
|
print_percentage_bar (percent, len);
|
||||||
|
} else {
|
||||||
|
printf("%*s", PERCENTAGE_BAR_END, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (i < STATS_COUNT &&
|
if (i < STATS_COUNT &&
|
||||||
(IS_GEN4(devid) || IS_GEN6(devid))) {
|
(IS_GEN4(devid) || IS_GEN6(devid))) {
|
||||||
printf("%13s: %llu (%lld/sec)",
|
printf("%13s: %llu (%lld/sec)",
|
||||||
@ -394,6 +393,9 @@ int main(int argc, char **argv)
|
|||||||
stats[i],
|
stats[i],
|
||||||
stats[i] - last_stats[i]);
|
stats[i] - last_stats[i]);
|
||||||
last_stats[i] = stats[i];
|
last_stats[i] = stats[i];
|
||||||
|
} else {
|
||||||
|
if (!top_bits_sorted[i]->count)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user