fixed profile time calculation
exclude a few more test modes
better weak reference handling in BDW mode #12701