LP-304 - Allow further info to be added to PERF_INIT_COUNTER for future feature support.
commit5156c0c9111990e106d7e7e1849df3dd6fa8bcf2
authorAlessio Morale <alessiomorale@gmail.com>
Mon, 2 May 2016 22:07:35 +0000 (3 00:07 +0200)
committerAlessio Morale <alessiomorale@gmail.com>
Mon, 2 May 2016 22:07:35 +0000 (3 00:07 +0200)
tree093028e3ae598ed9044576ad5d1fe64c8060de8c
parent1b254e41824c379a9b9eeb01b327f4f0737246cb
LP-304 - Allow further info to be added to PERF_INIT_COUNTER for future feature support.
This may allow in future to extract the counters id list with grep to be handled by gcs or other custom tools
Proposed usage:
PERF_INIT_COUNTER(counterVariable, id, "MODULE NAME","COUNTER DESCRIPTION","UNIT OF MEASURE");
i.e.:
PERF_INIT_COUNTER(counterExecutionTime, 0xAC700001, "ACTUATOR", "Actuator update execution time", "uS");
flight/pios/inc/pios_instrumentation_helper.h