oracle / oracle/visualvm

Show children tree in "Hot Spots" View

Open
#347 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
3.3k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

We often have same method "f()" at various locations in the "Forward calls" view.
Example calltree:
X.methodX()
-> F.f()
-> Y.methodY()
----> F.f()
----> Z.methodZ()
------> F.f()

The Hot Spot View currently show the Total Time of of all F.f(x) calls Thats good. But i also would like to know the accumulated total time of each children of f(x).
assume F.f() calls F.y() and F.z() it would be of much help to see a tree in the "Hot Spots" View like

F.f()
--> F.y()
--> F.z()

i.e. the Hot Spot View should be like the Forward Calls but with all distinct methods as root items (instead of Threads)
If any method is called recursive the view should stop at the selfrecursion. For example assume F.z() calls F.f() the view should look like

F.f()
--> F.y()
--> F.z()
-----> [selfrecursion] F.f()
possibly with a neat icon for [selfrecursion]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Java implementation of the "Hot Spots" and "Forward Calls" views. Trace how methods and call relationships are aggregated, then determine how distinct methods should become roots and where self-recursion is detected. Done means the Hot Spots view shows accumulated child trees and stops recursive branches with a clear self-recursion marker.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.