move show_profiles and dump_profiles to SparkContext