add code todo performance logging