def req2(analyzer): delta_time = -1.0 delta_memory = -1.0 tracemalloc.start() start_time = getTime() start_memory = getMemory() lista = model.req2(analyzer) lista_sorteada = lt.subList(mrge.sort(lista, cmpreq2), 1, 1) stop_memory = getMemory() stop_time = getTime() tracemalloc.stop() delta_time = stop_time - start_time delta_memory = deltaMemory(start_memory, stop_memory) i=1 while i<=lt.size(lista_sorteada): lp_numcables= lt.getElement(lista_sorteada,i) x=str(lp_numcables[0]) print(str(i) + ") Nombre, País: " + x + " || ID: "+str(model.iddadolp(analyzer,x.lower()))+" || Cables conectados: " + str(lp_numcables[1])) i+=1 return delta_time,delta_memory
def req2(catalog): delta_time = -1.0 delta_memory = -1.0 tracemalloc.start() start_time = getTime() start_memory = getMemory() respuesta = model.req2(catalog) stop_memory = getMemory() stop_time = getTime() tracemalloc.stop() delta_time = stop_time - start_time delta_memory = deltaMemory(start_memory, stop_memory) return respuesta, delta_time, delta_memory
def req2(cont, val_min, val_max, val_mind, val_maxd): delta_time = -1.0 delta_memory = -1.0 tracemalloc.start() start_time = getTime() start_memory = getMemory() datos = model.req2(cont, val_min, val_max, val_mind, val_maxd) stop_memory = getMemory() stop_time = getTime() tracemalloc.stop() delta_time = stop_time - start_time delta_memory = deltaMemory(start_memory, stop_memory) return datos, delta_time, delta_memory
def req2(analyzer,key): return model.req2(analyzer,key)
def req2(catalog, country): result = model.req2(catalog, country) return result
def req2(catalog): result = model.req2(catalog) return result
def req2(catalog, minEnergy, maxEnergy, minDanceability, maxDanceability): return model.req2(catalog, minEnergy, maxEnergy, minDanceability, maxDanceability)
def req2(analyzer): ans = model.req2(analyzer) return ans
def req2(catalog): return model.req2(catalog)
def req2(datos): return model.req2(datos)
def req2(analyzer): ''' Retorna una lista ordenada según la cantidad de arcos de cada vértice. ''' return model.req2(analyzer)
def req_2(catalog, fechas): t1_start = process_time() respuesta = model.req2(catalogo, fechas) t1_stop = process_time() #tiempo final print("la consulta se demoro:", t1_stop - t1_start, " segundos") return respuesta