Esempio n. 1
0
                if field in '-s':
                    size = int(val)

        except:

            print('[shadow] usage: jeruns [-cs]')
            print('[shadow] options:')
            print('[shadow]    -c           display current runs only')
            print('[shadow]    -s <size>    runs of the given size class only')
            print('[shadow] for example: jeruns -s 256 ')
            sys.exit()

        shadow.dump_runs(dump_current_runs = current_runs, size_class = size)

    elif sys.argv[1] == 'jebins':
        shadow.dump_bins()

    elif sys.argv[1] == 'nursery':
        shadow.dump_nursery()

    elif sys.argv[1] == 'jeregions':
        size_class = 0

        try:
            size_class = int(sys.argv[2])
        except:
            print('[shadow] usage: jeregions <size class>')
            print('[shadow] for example: jeregions 1024')
            sys.exit()

        shadow.dump_regions(size_class)
Esempio n. 2
0
                if field in '-s':
                    size = int(val)

        except:

            print('[shadow] usage: jeruns [-cs]')
            print('[shadow] options:')
            print('[shadow]    -c           display current runs only')
            print('[shadow]    -s <size>    runs of the given size class only')
            print('[shadow] for example: jeruns -s 256 ')
            sys.exit()

        shadow.dump_runs(dump_current_runs=current_runs, size_class=size)

    elif sys.argv[1] == 'jebins':
        shadow.dump_bins()

    elif sys.argv[1] == 'nursery':
        shadow.dump_nursery()

    elif sys.argv[1] == 'jeregions':
        size_class = 0

        try:
            size_class = int(sys.argv[2])
        except:
            print('[shadow] usage: jeregions <size class>')
            print('[shadow] for example: jeregions 1024')
            sys.exit()

        shadow.dump_regions(size_class)
Esempio n. 3
0
 def invoke(self, arg, from_tty):
     shadow.dump_bins(proc = self.proc)
Esempio n. 4
0
 def invoke(self, arg, from_tty):
     shadow.dump_bins(proc=self.proc)
Esempio n. 5
0
 def invoke(self, arg, from_tty):
     shadow.dump_bins()