コード例 #1
0
ファイル: DebugUtils.java プロジェクト: Ryan9181/zstack
 public static void countTimeStatistic(String name, long time) {
   TimeStatistic stat = timeStatistics.get(name);
   if (stat == null) {
     stat = new TimeStatistic();
     stat.setName(name);
     timeStatistics.put(name, stat);
   }
   stat.addStatistic(time);
 }
コード例 #2
0
 public Void call() throws Exception {
   if (_stat != null) _stat.start();
   if (_parser != null) _parser.parse(_handlers, _resource, _resolver);
   if (_stat != null) _stat.end();
   return null;
 }