Metric Plugin Template

This section describes the functions that must be implemented by every metric plugin library.

A metric plugin library is a small shared library that implements the functions allinea_plugin_initialise() and allinea_plugin_clean(), and is called when the shared library is loaded or unloaded. It also implements one or more functions of the form (but not necessarily of the same function name) as mymetric_getIntValue() or mymetric_getDoubleValue().

See custom1.c for an example of a metric plugin that implements this template.

See Metric plugin API for the functions that can be called by this metric library.

See Metric Definition File for information on the format of the definition file that informs profilers what metrics the metric plugin library can provide.