mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
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 <9erthalion6@gmail.com> Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20220612091253.eegstkufdsu4kfls@erthalion.local
This commit is contained in:
@@ -170,7 +170,7 @@ SET
|
||||
JIT:
|
||||
Functions: 3
|
||||
Options: Inlining false, Optimization false, Expressions true, Deforming true
|
||||
Timing: Generation 1.259 ms, Inlining 0.000 ms, Optimization 0.797 ms, Emission 5.048 ms, Total 7.104 ms
|
||||
Timing: Generation 1.259 ms (Deform 0.000 ms), Inlining 0.000 ms, Optimization 0.797 ms, Emission 5.048 ms, Total 7.104 ms
|
||||
Execution Time: 7.416 ms
|
||||
</screen>
|
||||
As visible here, <acronym>JIT</acronym> was used, but inlining and
|
||||
|
@@ -420,6 +420,25 @@
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>jit_deform_count</structfield> <type>bigint</type>
|
||||
</para>
|
||||
<para>
|
||||
Total number of tuple deform functions JIT-compiled by the statement
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>jit_deform_time</structfield> <type>double precision</type>
|
||||
</para>
|
||||
<para>
|
||||
Total time spent by the statement on JIT-compiling tuple deform
|
||||
functions, in milliseconds
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>jit_inlining_count</structfield> <type>bigint</type>
|
||||
|
Reference in New Issue
Block a user