xinrong-meng commented on code in PR #45378: URL: https://github.com/apache/spark/pull/45378#discussion_r1513714435
########## python/pyspark/sql/profiler.py: ########## @@ -224,6 +224,54 @@ def dump(id: int) -> None: for id in sorted(code_map.keys()): dump(id) + def clear_perf_profiles(self, id: Optional[int] = None) -> None: + """ + Clear the perf profile results. + + .. versionadded:: 4.0.0 Review Comment: It is a user-facing API, along with `profile.show` and `profile.dump`. We will also add it to API doc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org