コード例 #1
0
ファイル: Profiler.java プロジェクト: jojule/vaadin-framework
 /**
  * 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
ファイル: Profiler.java プロジェクト: jojule/vaadin-framework
 /**
  * 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");
   }
 }