def UnpickleFromFile(datafile):
 encoded_records = pickle.load(datafile)
 records = []
 for encoded_record in encoded_records:
  record = datamodel_pb.RequestStatProto(encoded_record)
  records.append(record)
  datafile.close()
 return records

def UnpickleFromFile ( datafile ) : encoded_records = pickle . load ( datafile ) records = [ ] for encoded_record in encoded_records : record = datamodel_pb . RequestStatProto ( encoded_record ) records . append ( record ) datafile . close ( ) return records
reads appstats data from file .