-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-28305: ProfileServlet: add html to output formats and prepare for profiler 3.0 #5281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
deniskuzZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor comment
|
ayushtkn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| return Output.valueOf(outputArg.trim().toUpperCase()); | ||
| } catch (IllegalArgumentException e) { | ||
| return Output.SVG; | ||
| LOG.warn("Output format value is invalid, returning with default HTML"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add what value is actually configured in the log as well
LOG.warn("Output format value {} is invalid, returning with default HTML", outputArg);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense!
took care in 681036c
|
all tests passed, merging |
…r profiler 3.0 (#5281) (Laszlo Bodor reviewed by Denys Kuzmenko, Ayush Saxena, Kokila N)




What changes were proposed in this pull request?
Added HTML format support to ProfileServlet.
Why are the changes needed?
Because HTML is the default format for creating flamegraphs.
Does this PR introduce any user-facing change?
No, profile servlet is more like a dev tool.
Is the change a dependency upgrade?
No.
How was this patch tested?
set web port for hs2 in hive-site.xml
called localhost:10003/prof and get the flamegraph successfully
https://issues.apache.org/jira/secure/attachment/13069348/async-prof-pid-21327-cpu-2.html