Added static bool to enable Xhprof in tests