diff options
author | Magnus Hagander <magnus@hagander.net> | 2022-04-08 13:51:01 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2022-04-08 13:52:16 +0200 |
commit | 57d6aea00fcefec3825a5948ce05cf2b4941097b (patch) | |
tree | 1f616ec4a8106714abc10f590df662a1f8d798c5 /doc/src | |
parent | dad9ba1c82fd985aa6fb8035ebca1e79c138dde2 (diff) |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/pgstatstatements.sgml | 72 |
1 files changed, 72 insertions, 0 deletions
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 </para></entry> </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_functions</structfield> <type>bigint</type> + </para> + <para> + Total number of functions JIT-compiled by the statement + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_generation_time</structfield> <type>bigint</type> + </para> + <para> + Total time spent by the statement on generating JIT code, in milliseconds + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_inlining_count</structfield> <type>bigint</type> + </para> + <para> + Number of times functions have been inlined + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_inlining_time</structfield> <type>bigint</type> + </para> + <para> + Total time spent by the statement on inlining functions, in milliseconds + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_optimization_count</structfield> <type>bigint</type> + </para> + <para> + Number of times the statement has been optimized + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_optimization_time</structfield> <type>bigint</type> + </para> + <para> + Total time spent by the statement on optimizing, in milliseconds + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_emission_count</structfield> <type>bigint</type> + </para> + <para> + Number of times code has been emitted + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>jit_emission_time</structfield> <type>bigint</type> + </para> + <para> + Total time spent by the statement on emitting code, in milliseconds + </para></entry> + </row> </tbody> </tgroup> </table> |