Profiling an actor's cpu gpu cost

Is this possible?

function
{
START_PROFILE(MYTRACE)

  // Logic

END_PROFILE(MYTRACE)

}

and in unreal insights, it shows how many costs to execute logis between that tow macros.

is it possible?