Added script for profiling nan and printing the profile infor in text format.