A fork of the PG'OCaml interface to PostgreSQL
OCaml
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
BUGS.txt
CONTRIBUTORS.txt
COPYING.LIB
HOW_IT_WORKS.txt
MANIFEST
META.in
Makefile
Makefile.config
README.profiling
README.txt
pGOCaml.ml
pGOCaml.mli
pGOCaml_config.ml
pGOCaml_config.ml.in
pa_pgsql.ml4
pgocaml_prof.ml
test_pgocaml.ml
test_pgocaml_lowlevel.ml

README.profiling

-------------------------------------------------------------------------
| Profiling.								|
-------------------------------------------------------------------------

If PG'OCaml programs are started with the environment variable
$PGPROFILING pointing to the name of a writable file, then profiling
information about events is written to this file.

This information can be analysed later by using the pgocaml_prof tool.

For example:
  PGPROFILING=$HOME/.test_prof
  export PGPROFILING
  ./test
  pgocaml_prof $HOME/.test_prof | less

Information currently tracked includes the running time for SQL
statements and connection time.  You can usually use this information
to find out which statements are taking too long, and optimise them
accordingly.

The profile file will contain some potentially sensitive information
such as database and user names (but not passwords).