From b5c1d2ac393a91c3e123de7a1f8d5929918d7745 Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Mon, 20 Jul 2026 15:52:40 +0530 Subject: [PATCH] TEZ-4740: Fix typo in ProfileServlet javadoc for method profiling Method profiling is still supported in newer versions of async-profiler (including 3.x and 4.x), but it is accessed via the '-e' flag instead of '-m' in the backend. Admins can continue to use the '?method=' HTTP query parameter for method profiling. This commit simply updates the Javadoc to reflect the correct async-profiler flag, while leaving the existing method profiling functionality intact. --- .../main/java/org/apache/tez/common/web/ProfileServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tez-common/src/main/java/org/apache/tez/common/web/ProfileServlet.java b/tez-common/src/main/java/org/apache/tez/common/web/ProfileServlet.java index ccc1d64040..4e683385cb 100644 --- a/tez-common/src/main/java/org/apache/tez/common/web/ProfileServlet.java +++ b/tez-common/src/main/java/org/apache/tez/common/web/ProfileServlet.java @@ -48,12 +48,12 @@ *
  * Servlet that runs async-profiler as web-endpoint.
  * Following options from async-profiler can be specified as query parameter.
- * //  -e event          profiling event: cpu|alloc|lock|cache-misses etc.
+ * //  -e event/method   profiling event: cpu|alloc|lock|cache-misses etc.
+ * //                    OR fully qualified method name: 'ClassName.methodName'
  * //  -d duration       run profiling for{@literal } seconds (integer)
  * //  -i interval       sampling interval in nanoseconds (long)
  * //  -j jstackdepth    maximum Java stack depth (integer)
  * //  -b bufsize        frame buffer size (long)
- * //  -m method         fully qualified method name: 'ClassName.methodName'
  * //  -t                profile different threads separately
  * //  -s                simple class names instead of FQN
  * //  -o fmt[,fmt...]   output format: summary|traces|flat|collapsed|svg|tree|jfr|html