prog8/python-prototype/run_profile.py
Irmen de Jong 6d343bd75d moved
2018-09-30 23:13:35 +02:00

13 lines
284 B
Python

import cProfile
from il65.compile import PlyParser
from il65.optimize import optimize
def parse():
parser = PlyParser(enable_floats=True)
parsed_module = parser.parse_file("testsource/large.ill")
optimize(parsed_module)
cProfile.run("parse()", filename="profile.dat")