Beispiel #1
0
 def clock_type(self):
     return yappi.clock_type()
Beispiel #2
0
 def clock_type(self):
     return yappi.clock_type()
Beispiel #3
0
#Requires yappi to be installed, use easy_install yappi

import yappi
from tribler import run

if __name__ == '__main__':
    yappi.start()
    run()
    yappi.stop()
    print "YAPPI:", yappi.clock_type()
    stats = yappi.get_stats(yappi.SORTTYPE_TSUB)
    for func_stats in stats.func_stats[:50]:
        print "YAPPI: %10dx  %10.3fs" % (func_stats.ncall,
                                         func_stats.tsub), func_stats.name

    #yappi.print_stats(yappi.SORTTYPE_TTOTAL)
#Requires yappi to be installed, use easy_install yappi

import yappi
from tribler import run
from time import time

if __name__ == '__main__':
    t1 = time()
    yappi.start()
    run()
    yappi.stop()
    print "YAPPI:", yappi.clock_type(), "tribler has run for", time() - t1, "seconds"
    stats = yappi.get_stats(yappi.SORTTYPE_TSUB)
    for func_stats in stats.func_stats[:50]:
        print "YAPPI: %10dx  %10.3fs" % (func_stats.ncall, func_stats.tsub), func_stats.name

    #yappi.print_stats(yappi.SORTTYPE_TTOTAL)
#Requires yappi to be installed, use easy_install yappi

import yappi
from tribler import run

if __name__ == '__main__':
    yappi.start()
    run()
    yappi.stop()
    print "YAPPI:", yappi.clock_type()
    stats = yappi.get_stats(yappi.SORTTYPE_TSUB)
    for func_stats in stats.func_stats[:50]:
        print "YAPPI: %10dx  %10.3fs" % (func_stats.ncall, func_stats.tsub), func_stats.name

    #yappi.print_stats(yappi.SORTTYPE_TTOTAL)