copied profiling script for no rex.
Authored by: tlinnet 2014-06-18
Parent: [r24126]
Child: [r24128]