예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
def req2(analyzer,key):
    return model.req2(analyzer,key)
예제 #5
0
def req2(catalog, country):
    result = model.req2(catalog, country)
    return result
예제 #6
0
def req2(catalog):
    result = model.req2(catalog)
    return result
예제 #7
0
def req2(catalog, minEnergy, maxEnergy, minDanceability, maxDanceability):

    return model.req2(catalog, minEnergy, maxEnergy, minDanceability,
                      maxDanceability)
예제 #8
0
def req2(analyzer):
    ans = model.req2(analyzer)
    return ans
예제 #9
0
def req2(catalog):
    
    return model.req2(catalog)
예제 #10
0
def req2(datos):
    return model.req2(datos)
예제 #11
0
def req2(analyzer):
    '''
    Retorna una lista ordenada según la cantidad de arcos de cada vértice.
    '''
    return model.req2(analyzer)
예제 #12
0
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