History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-8716
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Bas Leijdekkers
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

A way to measure the execution time of an inspection

Created: 08 Aug 06 16:01   Updated: 14 Aug 08 17:10
Component/s: Code Analysis. Inspection, Plugin Support. API
Fix Version/s: Diana 8733

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 5,594
Fixed in build: 8,715
Severity: Medium


 Description  « Hide
Before the "buildVisitor()" method in LocalInspectionTool appeared, it was quite easy to measure the execution time of an inspection. Just add some System.currentTimeMillis() and you're done. This was a good way to spot performance problems in the inspections of InspectionGadgets.

Currently all InspectionGadgets inspections implement the buildVisitor() method and the actual running of the inspection is done in IDEA code. A way/api to measure/retrieve the run time of an inspection would be very useful.



 All   Comments   Work Log   Change History      Sort Order:
Bas Leijdekkers - 14 Aug 08 16:02
This is great! I look forward to using this. Thanks Anna!

Anna Kozlova - 14 Aug 08 16:24
Bas, please take a look It is open api so if the way i've done is not convenient we should improve it as soon as possible ...

Bas Leijdekkers - 14 Aug 08 17:10
I will certainly take a look, as soon as a new build is available