Use getPrimitiveSizeInBits in constants.py
Generate per-optimization statistics