예제 #1
0
def main():
    records = libplot.parse()

    for bytes in libplot.unique(records, 'bytes'):
        plot(records, bytes)

    pylab.show()
예제 #2
0
def main():
    records = libplot.parse()

    for function in libplot.unique(records, 'function'):
        for bytes in libplot.unique(records, 'bytes'):
            plot(records, bytes, function)

    pylab.show()
예제 #3
0
파일: plot-align.py 프로젝트: 0mp/freebsd
def main():
    records = libplot.parse()

    for function in libplot.unique(records, 'function'):
        for bytes in libplot.unique(records, 'bytes'):
            plot(records, bytes, function)

    pylab.show()
예제 #4
0
파일: plot-sizes.py 프로젝트: 0mp/freebsd
def main():
    records = libplot.parse()

    functions = libplot.unique(records, 'function')
    alignments = libplot.unique(records, ('src_alignment', 'dst_alignment'))

    for function in functions:
        for alignment in alignments:
            for scale in [1, 2.5]:
                if plot(records, function, alignment, scale):
                    pylab.savefig('sizes-%s-%02d-%02d-%.1f.png' % (function, alignment[0], alignment[1], scale), dpi=72)

    pylab.show()
예제 #5
0
def main():
    records = libplot.parse()

    functions = libplot.unique(records, 'function')
    alignments = libplot.unique(records, ('src_alignment', 'dst_alignment'))

    for function in functions:
        for alignment in alignments:
            for scale in [1, 2.5]:
                if plot(records, function, alignment, scale):
                    pylab.savefig(
                        'sizes-%s-%02d-%02d-%.1f.png' %
                        (function, alignment[0], alignment[1], scale),
                        dpi=72)

    pylab.show()