spring-projects / spring-projects/spring-tools

Feature Idea: Code Minings for Profiling

Open
#430 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs-investigation type: enhancement
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

It would be really great to have functionality like the following:

  1. In STS4 activate profiling on methods you would like to profile, e.g. via context menu or any other option. (This should then trigger some AOP proxy magic in the background to decorate these methods with stopwatches)
  2. Start the app (and perform the action you like) or run the unit test.
  3. Get code mining annotations on the previously mentioned methods that state (live) the count of how many times that method has been called and, most important, the duration time of that method. (in case of more than one invocation some statistics min, max, avg, median accordingly)

Is this even possible? Maybe through a combination of IDE support and DevTools?

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

No files, tests, or entry points are identified in the issue. Start by assessing how STS4, AOP proxies, and DevTools could support selecting methods for profiling and displaying code-mining results. Done would require a defined workflow for activation, running an application or test, and showing invocation counts and timing statistics.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
developer-experience, performance, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.