mirror of
https://github.com/irmen/prog8.git
synced 2025-07-08 19:23:56 +00:00
moved
This commit is contained in:
12
python-prototype/run_profile.py
Normal file
12
python-prototype/run_profile.py
Normal file
@ -0,0 +1,12 @@
|
||||
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")
|
Reference in New Issue
Block a user