Java profiling tool jprofiler: offline profiling and triggers

Source: Internet
Author: User
Tags jprofiler

JavaPerformance analysis toolsProfiler provides two completely different methods for profiling applicationsProgram. By default, you can useJprofiler GuiFor application performance analysis. The jprofiler GUI provides a button for you to start and close records and displays all analysis data for you. If you do not want to use the jprofiler GUI profiling program, you can useJprofilerProvidedOffline profilingFunction. Offline profiling allows you to use profiling agents to analyze applications. Instead of connecting to the jprofiler GUI.

Profiling API

With the offline profiling API, you canCodeTo call the profiling operation. The disadvantage of this method is that you must add the jprofiler agent Library to the class path of the application during the development process and add the temporary profiling codeSource codeAnd the source code needs to be re-compiled every time the profiling operation is changed.

Triggers

With a trigger, you can specify all profiling operations in the jprofiler GUI without modifying the source code. Triggers is saved in the jprofiler configuration file. When you enable the offline profiling mode, the configuration file and session ID are transferred to the profiling proxy on the command line. Therefore, the profiling proxy can read the trigger definitions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.