Right now the profiler plugin performs profiler data collection and upload during the pre-report hook. This poses a problem for the trace plugin as it does data collection in the same hook. Instead, the profiler plugin should perform it's data collection during post-invocation hooks and only append profiler data to the report in the pre-report hook. This will allow the trace plugin to consistently report profiler plugin performance.
Right now the profiler plugin performs profiler data collection and upload during the pre-report hook. This poses a problem for the trace plugin as it does data collection in the same hook. Instead, the profiler plugin should perform it's data collection during post-invocation hooks and only append profiler data to the report in the pre-report hook. This will allow the trace plugin to consistently report profiler plugin performance.