void foo() { HT_G_TRACE_FUNCTION(); very_expensive_call(); } void bar() { HT_G_TRACE_FUNCTION(); for (int i = 0; i < 100; i++) { foo(); { HT_G_TRACE_OPT_STATIC("InternalOp"); recursive(10); } } }