NAME
Pg::Explain::JIT - Stores information about JIT from PostgreSQL's explain analyze.
VERSION
Version 2.7
SYNOPSIS
This module provides wrapper around various information about JIT that can be parsed from plans returned by explain analyze in PostgreSQL.
Object of this class is created by Pg::Explain when parsing plan, and is later available as $explain->jit.
ACCESSORS
functions( [val] )
Returns/sets number of functions / operators that were JIT compiled.
options( [val] )
Returns/sets whole hashref of options that were used by JIT compiler.
option( name, [val] )
Returns/sets value of single option that was used by JIT compiler.
timings( [val] )
Returns/sets whole hashref of how long it took to process various stages of JIT compiling.
timing( name, [val] )
Returns/sets time of single stage of JIT compiling.
METHODS
new
Object constructor. Should get one of:
struct - hashref based on parsing of JSON/YAML/XML plans
lines - arrayref of strings containling lines describing JIT from text plans
as_text
Returns text that represents the JIT info as in explain analyze output for 'text' format.
INTERNAL METHODS
_parse_struct
Parses given struct, as returned from parsing JSON/YAML/XML formats.
_parse_lines
Parses given lines, as parsed out of TEXT explain format.
AUTHOR
hubert depesz lubaczewski, <depesz at depesz.com>
BUGS
Please report any bugs or feature requests to depesz at depesz.com
.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Pg::Explain::JIT
COPYRIGHT & LICENSE
Copyright 2008-2023 hubert depesz lubaczewski, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.