summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_perf.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-27 13:49:43 -0700
committerBrian Paul <[email protected]>2010-01-27 13:49:43 -0700
commite95ad2a2b521514eaec04f9b266ee030ecc639a3 (patch)
tree96eb882f78597cae7af3aa991dfbda3b030a21dc /src/gallium/drivers/llvmpipe/lp_perf.c
parent5460da543608805a3debbb401ccc19442e1cb476 (diff)
llvmpipe: count/report time spent in LLVM compilations
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_perf.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_perf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_perf.c b/src/gallium/drivers/llvmpipe/lp_perf.c
index 2628d51069b..042218b27fc 100644
--- a/src/gallium/drivers/llvmpipe/lp_perf.c
+++ b/src/gallium/drivers/llvmpipe/lp_perf.c
@@ -82,5 +82,9 @@ lp_print_counters(void)
debug_printf("llvmpipe: nr_empty_4x4: %9u (%2.0f%% of %u)\n", lp_count.nr_empty_4, p1, total_4);
debug_printf("llvmpipe: nr_non_empty_4x4: %9u (%2.0f%% of %u)\n", lp_count.nr_non_empty_4, p2, total_4);
+
+ debug_printf("llvmpipe: nr_llvm_compiles: %u\n", lp_count.nr_llvm_compiles);
+ debug_printf("llvmpipe: total LLVM compile time: %.2f sec\n", lp_count.llvm_compile_time / 1000000.0);
+ debug_printf("llvmpipe: average LLVM compile time: %.2f sec\n", lp_count.llvm_compile_time / 1000000.0 / lp_count.nr_llvm_compiles);
}
}