Skip to content

Allow tracing of python (CA) configuration code

Walter Lampl requested to merge wlampl/athena:CA_tracing into main

This MR brings the equivalent of athena -s to CA-based configurations: Trace the execution of the python code doing the job configuration.

It's based on the python trace library. By default, the output is too verbose to be really useful because also every single system library is traced. To cope with this, 3 different levels of suppression are defined:

0: print everything

1: Exclude system libraries and ROOT libraries

2: Exclude also GaudiConfig2 modules

  1. Exclude also the internals of ComponentAccumulator (this is the default if no number is given)

Works with athena --CA --tracelevel=3 CaloRec/CaloRecoConfig.py or ThinCAWrapper.sh --tracelevel=3 CaloRec/CaloRecoConfig.py

Merge request reports