def profile(func):
    def _profile(*args, **kw):
        profiler = cProfile.Profile()
        try:
            return profiler.runcall(func, *args, **kw)
        finally:
            pstats.Stats(profiler).sort_stats('time').print_stats(30)
    return _profile
Generates common source files.
dataset/ETHPy150Open circus-tent/circus/circus/tests/support.py/profile--crossover with--dataset/ETHPy150Open libyal/libyal/scripts/source-generate.py/CommonSourceFileGenerator.Generate