Skip to content

Print memory usage when loading conditions (on top of duration)

Sebastien Ponce requested to merge sponce_LoadCondMem into master

Previously output looked like :

ConditionsLoader                                               INFO ++ Added    8 conditions from Conditions/UT/Alignment/HalfLayers.yml           to pool [     0-291999] [  0.011 sec]
ConditionsLoader                                               INFO ++ Added  968 conditions from Conditions/UT/Alignment/Modules.yml              to pool [     0-291999] [  0.063 sec]
ConditionsLoader                                               INFO ++ Added  204 conditions from Conditions/UT/Alignment/Staves.yml               to pool [     0-291999] [  0.021 sec]
ConditionsLoader                                               INFO ++ Added    1 null conds for  Conditions/UT/ChannelInfo/HitLimits.yml          to pool [     0-inf   ]
ConditionsMgr                                                  INFO Created IOV Pool for:run(0):[0-304424]
ConditionsLoader                                               INFO ++ Added    1 conditions from Conditions/UT/ChannelInfo/NoiseValues.yml        to pool [     0-304424] [  6.158 sec]
ConditionsLoader                                               INFO ++ Added    1 conditions from Conditions/UT/ChannelInfo/PedestalValues.yml     to pool [     0-304424] [  1.637 sec]

Now we have :

ConditionsLoader                                               INFO ++ Added    8 conditions from Conditions/UT/Alignment/HalfLayers.yml           to pool [     0-291999] [  0.011s 0KB]
ConditionsLoader                                               INFO ++ Added  968 conditions from Conditions/UT/Alignment/Modules.yml              to pool [     0-291999] [  0.063s 0KB]
ConditionsLoader                                               INFO ++ Added  204 conditions from Conditions/UT/Alignment/Staves.yml               to pool [     0-291999] [  0.021s 0KB]
ConditionsLoader                                               INFO ++ Added    1 null conds for  Conditions/UT/ChannelInfo/HitLimits.yml          to pool [     0-inf   ]
ConditionsMgr                                                  INFO Created IOV Pool for:run(0):[0-304424]
ConditionsLoader                                               INFO ++ Added    1 conditions from Conditions/UT/ChannelInfo/NoiseValues.yml        to pool [     0-304424] [  6.158s 524288KB]
ConditionsLoader                                               INFO ++ Added    1 conditions from Conditions/UT/ChannelInfo/PedestalValues.yml     to pool [     0-304424] [  1.637s 0KB]

Note that this may trigger some ref updates. Ideally we should not print this in INFO mode. Sadly DD4hep makes it almost impossible to have it in DEBUG by default and still be able to switch it on for dedicated tests. So for now, it has been left in INFO mode.

Merge request reports

Loading