Пример #1
0
def req1(analyzer,lp1,lp2):
    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    num1=model.iddadolp(analyzer,lp1)
    num2=model.iddadolp(analyzer,lp2)
    if num1==None or num2==None:

        stop_memory = getMemory()
        stop_time = getTime()
        tracemalloc.stop()

        delta_time = stop_time - start_time
        delta_memory = deltaMemory(start_memory, stop_memory)

        return None
        
    else:
        x=model.req1(analyzer,num1,num2)

        stop_memory = getMemory()
        stop_time = getTime()
        tracemalloc.stop()

        delta_time = stop_time - start_time
        delta_memory = deltaMemory(start_memory, stop_memory)

        return x,delta_time,delta_memory
Пример #2
0
def req1(catalog, vera, verb):

    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    md.req1(catalog, vera, verb)

    stop_memory = getMemory()
    stop_time = getTime()
    tracemalloc.stop()

    delta_time = stop_time - start_time
    delta_memory = deltaMemory(start_memory, stop_memory)
    print('Tiempo en s :' + str(delta_time / 1000) + '.      Memoria en kb: ' +
          str(delta_memory) + '.')
Пример #3
0
def req1(catalog, nombre1, nombre2):
    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    respuesta = model.req1(catalog, nombre1, nombre2)

    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
Пример #4
0
def req1(nombre, val_min, val_max, cont):

    delta_time = -1.0
    delta_memory = -1.0

    tracemalloc.start()
    start_time = getTime()
    start_memory = getMemory()

    datos = model.req1(nombre, val_min, val_max, cont)

    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
Пример #5
0
def req1(catalog, caracteristica, minimo, maximo):
    """
    Función que se encarga de iniciar la ejecución del requerimiento
    1 en el model y llevar el resultado al view.
    """
    return model.req1(catalog, caracteristica, minimo, maximo)
Пример #6
0
def req1(catalog, name, country, size):
    result = model.req1(catalog, name, country, size)
    return result
Пример #7
0
def req1(analyzer,lp1,lp2):
    return model.req1(analyzer,lp1,lp2)
Пример #8
0
def req1(caracteristica, catalog, min, max):

    return model.req1(caracteristica, catalog, min, max)
Пример #9
0
def req1(catalog, lp1, lp2):

    return model.req1(catalog, lp1, lp2)
Пример #10
0
def req1(datos, landinga, landingb):
    return model.req1(datos, landinga, landingb)