@@ -222,9 +222,10 @@ class HammerParseApply(FlowControlWithPrint):
print(":: hammer-parse-apply")
definvoke(self,arg,from_tty):
#profiler = cProfile.Profile() # DEBUG
#profiler.enable() # DEBUG
withcProfile.Profile()asprofiler:# DEBUG
##profiler = cProfile.Profile() # DEBUG
##profiler.enable() # DEBUG
#with cProfile.Profile() as profiler: # DEBUG
ifTrue:
top_level_parse.setup_ast_stack_index(0)#TODO: is it a problem if this command overwrites it? would it better to use a convenience variable, as with parse-step?
@@ -253,9 +254,10 @@ class HammerParseApplyAndShowAST(FlowControlWithPrint):
print(":: hammer-parse-apply-and-show-ast")
definvoke(self,arg,from_tty):
#profiler = cProfile.Profile() # DEBUG
#profiler.enable() # DEBUG
withcProfile.Profile()asprofiler:# DEBUG
##profiler = cProfile.Profile() # DEBUG
##profiler.enable() # DEBUG
#with cProfile.Profile() as profiler: # DEBUG
ifTrue:
top_level_parse.setup_ast_stack_index(0)#TODO: is it a problem if this command overwrites it? would it better to use a convenience variable, as with parse-step?