mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user