simulator: store function flag of symbols
simulator: added function profiling capabilities.
Merge branch 'sim_profiling'