Пример #1
0
 /**
  * Leaves a named block. There should always be a matching invocation of {@link #enter(String)}
  * when entering the block. Calls to this method will be removed by the compiler unless profiling
  * is enabled.
  *
  * @param name the name of the left block
  */
 public static void leave(String name) {
   if (isEnabled()) {
     logGwtEvent(name, "end");
   }
 }
Пример #2
0
 /**
  * Enters a named block. There should always be a matching invocation of {@link #leave(String)}
  * when leaving the block. Calls to this method will be removed by the compiler unless profiling
  * is enabled.
  *
  * @param name the name of the entered block
  */
 public static void enter(String name) {
   if (isEnabled()) {
     logGwtEvent(name, "begin");
   }
 }