Exemplo n.º 1
0
def generate(args):
    Generate(verbose=args.verbose)
def generate(args):
    Generate(verbose=args.verbose, dir_site=args.dir_site)
Exemplo n.º 3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from logya.generate import Generate

import cProfile, pstats, io
from pstats import SortKey

pr = cProfile.Profile()
pr.enable()

Generate(verbose=True)

pr.disable()
s = io.StringIO()
ps = pstats.Stats(pr, stream=s).sort_stats(SortKey.CUMULATIVE)
ps.print_stats()
print(s.getvalue())