Add internal server-side profiling tool (#12537)

Change-Id: I10624ee27afc292a37ed4eddaebd610004dc38a9