@@ -25,9 +25,24 @@ def code_to_profile():
2525profiler .bind_timer ("systemrdl.preprocessor" , "preprocess_file" , "preprocess" )
2626profiler .bind_timer ("systemrdl.parser.sa_systemrdl" , "parse" , "lex/parse" )
2727profiler .bind_timer ("systemrdl.core.ComponentVisitor" , "RootVisitor.visitRoot" , "compile" )
28- profiler .bind_timer ("systemrdl.compiler" , "RDLCompiler.elaborate" , "elaborate" )
29-
30- profiler .bind_timer ("systemrdl.component" , "Component._copy_for_inst" , "comp deepcopies" )
28+ profiler .bind_timer ("systemrdl.compiler" , "RDLCompiler.elaborate" , "elaborate total" )
29+ profiler .bind_timer ("systemrdl.compiler" , "RDLCompiler._elab_create_root_inst" , "elaborate-inst" )
30+ profiler .bind_timer ("systemrdl.compiler" , "RDLCompiler._elab_design" , "elaborate-expr" )
31+ profiler .bind_timer ("systemrdl.compiler" , "RDLCompiler._elab_validate" , "validate" )
32+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_Component" , "validate:enter_Component ")
33+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_Signal" , "validate:enter_Signal ")
34+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_AddressableComponent" , "validate:enter_AddressableComponent")
35+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_Addrmap" , "validate:enter_Addrmap ")
36+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_Reg" , "validate:enter_Reg ")
37+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Reg" , "validate:exit_Reg ")
38+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.enter_Field" , "validate:enter_Field ")
39+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Field" , "validate:exit_Field ")
40+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Regfile" , "validate:exit_Regfile ")
41+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Addrmap" , "validate:exit_Addrmap ")
42+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Mem" , "validate:exit_Mem ")
43+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_AddressableComponent" , "validate:exit_AddressableComponent ")
44+ #profiler.bind_timer("systemrdl.core.validate", "ValidateListener.exit_Component" , "validate:exit_Component ")
45+ #profiler.bind_timer("systemrdl.node", "Node.get_property" , "Node.get_property")
3146
3247# Run!
3348code_to_profile ()
0 commit comments