add profiling support for agent and bootstrapper