Exemplo n.º 1
0
    def onClose(self, event):
        self.result = {'name': self.nameVar, 'io_intensive': self.ioIntensiveVar,
         'range': (int(self.startAddressVar), int(self.endAddressVar)),
         'count': int(self.ioCountVar), 'write_percent': float(self.writePercentageVar),
         'write_ran_percent': float(self.randomWritePercentageVar),
         'read_ran_percent': float(self.randomReadPercentageVar)}
        print(self.result)

        myGen = Gen(self.result)
        myGen.gen()
Exemplo n.º 2
0
 def __init__(self):
     Gen.__init__(self, self.__class__.__name__)
Exemplo n.º 3
0
 def __init__(self, name):
     Gen.__init__(self, name)
     self.attrs['freq'] = 220.0
     self.attrs['phase'] = 0.0
     self.attrs['sync'] = 2.0
Exemplo n.º 4
0
from Gen import Gen

#2GB data, 20GB address range
myGen = Gen({
        'range': (1,0.5*1024*1024*1024//512),
        'count': 2*1024*1024*1024//4096,
        'write_percent': 0.5,
        'write_ran_percent': 0.67,
        'read_ran_percent': 0.67
    })
myGen.gen()


Exemplo n.º 5
0
def main():
    genA = Gen(None, 'genA')
    genB = Gen(None, 'genB')
    genC = Gen(None, 'genC')
    genD = Gen(None, 'genD')
    genE = Gen(None, 'genE')
    genF = Gen(None, 'genF')
    
    genA.add_patch_to(genB)
    genB.add_patch_to(genC)
    genB.add_patch_to(genD)
    genD.add_patch_to(genA)
    genD.add_patch_to(genE)
    
    Patch.dfs_patch_search(genA)
    for patch in Patch.patch_list:
        print patch
    
    genB.add_patch_to(genF)
    Patch.dfs_patch_search(genA)
    for patch in Patch.patch_list:
        print patch