From 57d6aea00fcefec3825a5948ce05cf2b4941097b Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 8 Apr 2022 13:51:01 +0200 Subject: Add JIT counters to pg_stat_statements This adds cumulative counters for jit operations to pg_stat_statements, making it easier to diagnose how JIT is used in an installation. These changes merge into the 1.10 changes applied in 76cbf7edb6 without creating a new version. Reviewed-By: Julien Rouhaud Discussion: https://www.postgresql.org/message-id/flat/CABUevEySt4NTYqvWzwyAW_0-jG1bjN-y+tykapAnA0FALOs+Lw@mail.gmail.com --- doc/src/sgml/pgstatstatements.sgml | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml index 0ead2464d87..45e720e995d 100644 --- a/doc/src/sgml/pgstatstatements.sgml +++ b/doc/src/sgml/pgstatstatements.sgml @@ -401,6 +401,78 @@ Total amount of WAL generated by the statement in bytes + + + + jit_functions bigint + + + Total number of functions JIT-compiled by the statement + + + + + + jit_generation_time bigint + + + Total time spent by the statement on generating JIT code, in milliseconds + + + + + + jit_inlining_count bigint + + + Number of times functions have been inlined + + + + + + jit_inlining_time bigint + + + Total time spent by the statement on inlining functions, in milliseconds + + + + + + jit_optimization_count bigint + + + Number of times the statement has been optimized + + + + + + jit_optimization_time bigint + + + Total time spent by the statement on optimizing, in milliseconds + + + + + + jit_emission_count bigint + + + Number of times code has been emitted + + + + + + jit_emission_time bigint + + + Total time spent by the statement on emitting code, in milliseconds + + -- cgit v1.2.3