Wednesday, March 2, 2016

DataPack tracking

DataPacks need to be obtained and released. If you suspect some code (of course not anything made by you!) is not doing it right, then you can now enable tracking, which will go to the debug log (stderr on Linux). It is also usable in release mode (on-site at clients), in which case it will go to the normal log file.

To enable, set the environment variable OD_TRACK_DATAPACKS to yes.

This is the output of creating one inline with default data, and immediately removing it:

[DP]: add 4 '4 Dip steered median filter'
[DP]: obtain 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: obtain 4 nrusers=2
[DP]: release 4 nrusers=1
[DP]: release/delete 4

No comments:

Post a Comment