8 def __init__ (self, filename):
9 self.filename=filename+".bin"
14 file = open(self.filename,'rb')
15 self.slices = pickle.load(file)
18 def print_rspecs (self):
20 for slice in self.slices:
21 # filter out a few things
22 list=self.slices[slice]
25 if dict['name'] in ['cpu_share']:
29 print 'slice',slice,'->'
33 if __name__ == '__main__':
35 for filename in sys.argv[1:]:
37 sl_import = SlicesLoad(filename)
38 sl_import.print_rspecs()