Updated on 2025-06-27 GMT+08:00

Method Analysis

Method analysis shows the time consumption details, invocation source, and source code of running methods. This helps you quickly locate root causes in scenarios where faults cannot be reproduced offline or logs are missing.

Procedure

  1. Log in to the management console.
  2. Click on the left and choose Management & Governance > Application Performance Management.
  3. In the navigation pane, choose Application Monitoring > Metrics.
  4. In the tree on the left, click next to the target environment.
  5. Click the Debugging Diagnosis tab.
  6. Click Method Analysis. The Method Analysis page is displayed.

    Figure 1 Method analysis

  7. In the Enter a class name text box, enter a class name. Click and select a class name from the drop-down list.

    In the Select a method name text box, select a method name. Click Confirm. The execution information of the method is displayed.

    Figure 2 Class name and method name
    Figure 3 Method analysis details
    • The execution records of the method are displayed on the left of the page, including Time Consumption Details, Invoking Source, and Method Source Code.
      1. Time Consumption Details: include the call method, time consumed, and drill-in operation.
      2. Click Drill In to view details about the called method.
        Figure 4 Drill-down
    • Default observation items are displayed on the right of the page, including Parameters, Return Object, Thrown Exception, and Target.
    • Select overloaded methods: In the drop-down list, select an overloaded method.
    • Set the filtering criteria: Filter method records that meet specified criteria.
      Figure 5 Setting the filtering criteria
      1. Select a filter key from the drop-down list or enter one.
      2. Select a filter criterion from the drop-down list.
      3. Enter a filter value.
      4. Click Add. The filter criteria will be displayed in the current dialog box.
      5. Click Submit to complete the configuration.