Add JIT deform_counter
authorDaniel Gustafsson <[email protected]>
Fri, 8 Sep 2023 13:05:12 +0000 (15:05 +0200)
committerDaniel Gustafsson <[email protected]>
Fri, 8 Sep 2023 13:05:12 +0000 (15:05 +0200)
commit5a3423ad8ee171fbf08317917981effe47d211eb
tree6e4e846b3062d95466812357504e433e7ba7020a
parent6fe3cefde4b414819d9bb68999ae235a9fc3ce83
Add JIT deform_counter

generation_counter includes time spent on both JIT:ing expressions
and tuple deforming which are configured independently via options
jit_expressions and jit_tuple_deforming.  As they are  combined in
the same counter it's not apparent what fraction of time the tuple
deforming takes.

This adds deform_counter dedicated to tuple deforming, which allows
seeing more directly the influence jit_tuple_deforming is having on
the query. The counter is exposed in EXPLAIN and pg_stat_statements
bumpin pg_stat_statements to 1.11.

Author: Dmitry Dolgov <[email protected]>
Reviewed-by: Pavel Stehule <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/20220612091253[email protected]
contrib/pg_stat_statements/Makefile
contrib/pg_stat_statements/meson.build
contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql[new file with mode: 0644]
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_stat_statements/pg_stat_statements.control
doc/src/sgml/jit.sgml
doc/src/sgml/pgstatstatements.sgml
src/backend/commands/explain.c
src/backend/jit/jit.c
src/backend/jit/llvm/llvmjit_expr.c
src/include/jit/jit.h