simulator: fix profiling

* profiling is enabled now by default
simulator: factored out debug stack of core