[
https://issues.apache.org/jira/browse/HIVE-27184?focusedWorklogId=855897&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-855897
]
ASF GitHub Bot logged work on HIVE-27184:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 10/Apr/23 16:09
Start Date: 10/Apr/23 16:09
Worklog Time Spent: 10m
Work Description: difin commented on PR #4196:
URL: https://github.com/apache/hive/pull/4196#issuecomment-1502008694
> Thanks @difin. LGTM.
>
> minor comment: Need to check if parameters with "$" (e.g java classnames)
should be decoded. It can be a separate ticket.
Hi @rbalamohan,
I checked what happens when profiling a method with "$".
From a command line the profiling command works if you escape the dollar
sign by adding "\" before "$" :
`curl
"http://localhost:10002/prof?output=tree&duration=30&interval=1&method=java.util.concurrent.locks.AbstractQueuedSynchronizer\$ConditionObject.awaitNanos"`
Than it generates an output file with name like this:
`async-prof-pid-73790-java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos-4.tree`
To open it in a linux shell the file also needs to be escaped.
[async-prof-pid-73790-java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos-4.tree.html.txt](https://github.com/apache/hive/files/11191887/async-prof-pid-73790-java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.awaitNanos-4.tree.html.txt)
The output inside the output file is fine. A sample output file is attached.
Issue Time Tracking
-------------------
Worklog Id: (was: 855897)
Time Spent: 1h 10m (was: 1h)
> Add class name profiling option in ProfileServlet
> -------------------------------------------------
>
> Key: HIVE-27184
> URL: https://issues.apache.org/jira/browse/HIVE-27184
> Project: Hive
> Issue Type: Improvement
> Components: HiveServer2
> Reporter: Rajesh Balamohan
> Assignee: Dmitriy Fingerman
> Priority: Major
> Labels: performance, pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> With async-profiler "-e classame.method", it is possible to profile specific
> events. Currently profileServlet supports events like cpu, alloc, lock etc.
> It will be good to enhance to support method name profiling as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)