Somehow / somewhere, each code snippet can specify custom variables to be kept in memory, and to be stored.
Maybe a json, with the same base filename as the code snippet (assume none, if there is no matching file).
Which has entries for each variable, specifying:
- variable name
- variable type (numeric, boolean or character?)
- anything else?
These variables are added as columns / dict entries to the performance matrix. That is. they will be available to the code snippets, and they will also be stored in the per-trial files.