You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/03/16 13:27:40 UTC

[GitHub] [ozone] adoroszlai commented on a change in pull request #2048: HDDS-4984. Async profiler 2.0 no longer supports svg output

adoroszlai commented on a change in pull request #2048:
URL: https://github.com/apache/ozone/pull/2048#discussion_r595165925



##########
File path: hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/ProfileServlet.java
##########
@@ -500,7 +515,8 @@ public static Event fromInternalName(final String name) {
     COLLAPSED,
     SVG,
     TREE,
-    JFR
+    JFR,
+    HTML

Review comment:
       Async Profiler 2.0 does not seem to create useful output with `-o html`:
   
   ```
   $ /opt/profiler/profiler.sh -d 10 -o html -f /tmp/prof-output/async-prof-pid-7-cpu-1.html 7
   Profiling for 10 seconds
   Done
   $ cat /tmp/prof-output/async-prof-pid-7-cpu-1.html
   Stopped profiling after 10 seconds. No dump options specified
   ```
   
   We need `-o flamegraph` instead:
   
   ```
   $ /opt/profiler/profiler.sh -d 10 -o flamegraph -f /tmp/prof-output/async-prof-pid-7-cpu-2.html 7
   Profiling for 10 seconds
   Done
   $ head -3 /tmp/prof-output/async-prof-pid-7-cpu-2.html
   <?xml version="1.0" standalone="no"?>
   <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
   <svg version="1.1" width="1200" height="518" onload="init(evt)" viewBox="0 0 1200 518" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org