Perf4J

Add capability to set a time threshold in LoggingStopWatch and Profiled annotation

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.9.10
  • Fix Version/s: 0.9.12
  • Component/s: Perf4J base
  • Labels:
    None
  • Environment:
    all
  • Number of attachments :
    0

Description

A common desired feature is to log events ONLY when they are too slow. Adding a threshold on the LoggingStopWatch, where the log call is only made when the time exceeds the threshold, is very useful. This feature should also be exposed through the @Profiled annotation.

This feature was suggested and a patch was submitted by Maciej Rakowicz .

Activity

Hide
Alex Devine added a comment -

Added timeThreshold property to LoggingStopWatch and Profiled annotation.

Show
Alex Devine added a comment - Added timeThreshold property to LoggingStopWatch and Profiled annotation.

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
3m
Original Estimate - 3 minutes
Remaining:
3m
Remaining Estimate - 3 minutes
Logged:
Not Specified
Time Spent - Not Specified