injection_points: Add stats for point caching and loading
authorMichael Paquier <michael@paquier.xyz>
Mon, 19 Aug 2024 00:03:52 +0000 (09:03 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 19 Aug 2024 00:03:52 +0000 (09:03 +0900)
commit2793acecee340aa9582e0f3efe9ff6cb4b5bdf5a
tree80b6d09d5abb8a2fed29e554eb809e234c58dde1
parentb10528e6cc677e4714d516d2771e5f84485b3146
injection_points: Add stats for point caching and loading

This adds two counters to the fixed-numbered stats of injection points
to track the number of times injection points have been cached and
loaded from the cache, as of the additions coming from a0a5869a8598 and
4b211003ecc2.

These should have been part of f68cd847fa40, but I have lacked time and
energy back then, and it did not prevent the code to be a useful
template.

While on it, this commit simplifies the description of a few tests while
adding coverage for the new stats data.

Author: Yogesh Sharma
Discussion: http://postgr.es/m/3a6977f7-54ab-43ce-8806-11d5e15526a2@catprosystems.com
src/test/modules/injection_points/injection_points--1.0.sql
src/test/modules/injection_points/injection_points.c
src/test/modules/injection_points/injection_stats.h
src/test/modules/injection_points/injection_stats_fixed.c
src/test/modules/injection_points/t/001_stats.pl