Don't echo json from hotprofiler return if are using External profiler.
Have hphp/test/run use the flags to run NewRelic profiler.
Don't compile for profiling.  The newrelic.so can be compiled for profiling.