924060929 opened a new pull request, #35010:
URL: https://github.com/apache/doris/pull/35010

   ## Proposed changes
   
   embed async profiler to help user generate flame graph for frontend
   
   There has a script file `${FE_DEPLOY_PATH}/bin/profile_fe.sh` do the profile:
   
   This is the example:
   ```shell
   $ PROFILE_SECONDS=1 bin/profile_fe.sh
   DORIS_HOME: /Users/lanhuajian/github/doris/output/fe
   JAVA: 
/Users/lanhuajian/Library/Java/JavaVirtualMachines/corretto-17.0.10/Contents/Home/bin/java
   DorisFE pid: 29494
   Begin profiling 1 seconds and generate flame graph to 
/Users/lanhuajian/github/doris/output/fe/log/profile_20240517154934.html...
   
   Profiling for 1 seconds
   Done
   Generated flame graph to 
/Users/lanhuajian/github/doris/output/fe/log/profile_20240517154934.html
   ```
   
   You open the generated html file to troubleshooting performance issues
   
   **Note**: this profiler use the `async-profiler` tool, so it only support in 
Linux and MaxOS


-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to