I do not know if folks are doing profiling on TeX/LaTeX, but an easy way
would be to set \tracingcommands = 1, and then count the frequency in the
log file of the different commands executed.

  Hans Aberg
                  * Email: Hans Aberg <mailto:[log in to unmask]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>