[Mesa-dev] [PATCH] i965: Print out cycle estimates at the start of block annotations.
Kenneth Graunke
kenneth at whitecape.org
Sun Dec 11 22:59:41 UTC 2016
We now print
START B15 <-B14 (42774 cycles)
indicating that we estimate B15 will take 42,774 cycles. Printing
this should make it easier where time is spent in the program.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/intel_asm_annotation.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_asm_annotation.c b/src/mesa/drivers/dri/i965/intel_asm_annotation.c
index b01490a..bb24e5e 100644
--- a/src/mesa/drivers/dri/i965/intel_asm_annotation.c
+++ b/src/mesa/drivers/dri/i965/intel_asm_annotation.c
@@ -45,7 +45,7 @@ dump_assembly(void *assembly, int num_annotations, struct annotation *annotation
struct bblock_t *predecessor_block = predecessor_link->block;
fprintf(stderr, " <-B%d", predecessor_block->num);
}
- fprintf(stderr, "\n");
+ fprintf(stderr, " (%u cycles)\n", annotation[i].block_start->cycle_count);
}
if (last_annotation_ir != annotation[i].ir) {
--
2.10.2
More information about the mesa-dev
mailing list