- Copy and paste this in your project (to be able to use the boolean properties):
package asteroids;
/* Expensive method invocation */
public @interface Expensive {
boolean singleCall() default true;
boolean calledInLoop() default true;
boolean calledInLambda() default true;
}
Adds some useful annotations features to Java.
- "Expensive" annotation type: Allows you to mark some annotations to be used to mark code as "expensive" (high CPU consuming). For example create an annotation called @Expensive and mark it.
- more to come...
Plugin based on the IntelliJ Platform Plugin Template.