Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({METHOD})
public @interface Timed
Records how long each call of this method takes, as a histogram.
The build rewrites the method to read the clock before and after its body; the instrument itself is created once, when the class is first used.
Methods
public abstract String value() default "" | The metric’s name. |
public abstract String description() default "" | What it measures, for the listing. |
Method details
value
public abstract String value() default ""The metric’s name. Empty means the class and method, such as
com.example.Orders.place.duration.description
public abstract String description() default ""What it measures, for the listing.