Add helper to profile code outside a request