SparkContext.
dump_profiles
Dump the profile stats into directory path
New in version 1.2.0.
See also
SparkContext.show_profiles()