added profiling support to http emitter