@ Weight ( value = Weight . Unit . VARIABLE , comment = "Depends on the current call stack depth" ) // WARNING! Don't make a call from methods of the class to not break stack depth! public static void addPoint ( @ Nonnull final String timePointName , @ Nonnull final TimeAlertListener listener ) { final List < TimeData > list = REGISTRY . get ( ) ; list . add ( new TimeData ( ThreadUtils . stackDepth ( ) , timePointName , - 1L , assertNotNull ( listener ) ) ) ; }
Add a named time point .