示例#1
0
 public static void clearAllGWData() {
   TagTimeEntry[] ttes = OpPerfBridge.getAllProfilerData();
   for (TagTimeEntry tte : ttes) {
     tte.clear();
     // 如果是流量数据,还要同时reset
     String key = tte.getName();
     NetUtils.clearNetValue(key);
   }
 }
示例#2
0
 public static void saveAllGWData(GWSaveEntry saveEntry) {
   setLastSaveFolder(saveEntry.path3);
   String now = GTUtils.getSaveDate();
   saveEntry.setNow(now);
   TagTimeEntry[] ttes = OpPerfBridge.getAllProfilerData();
   for (TagTimeEntry tte : ttes) {
     if (null != tte && tte.getAlias().equals("SM")) {
       LogUtils.writeGWDataForSM(saveEntry, tte);
     } else {
       LogUtils.writeGWData(saveEntry, tte);
     }
   }
   LogUtils.writeGWDesc(saveEntry, ttes);
 }