using stats.
DECLARE_DWORD_ACCUMULATOR_STAT(TEXT("TR_Init"), STAT_PoolInit, STATGROUP_Quick); //declare int counter
const uint32 BroadcastBeginTime = FPlatformTime::Cycles(); //mark start
// ... code
const uint32 BroadcastEndTime = FPlatformTime::Cycles(); //mark end
SET_DWORD_STAT(STAT_PoolInit, BroadcastEndTime - BroadcastBeginTime); //set the counter
Then on device open console (4-finger tap) write “stat quick”. You should see the counter value. More info here: Engine\Source\Runtime\Core\Public\Stats\Stats.h