The goal here is to make it easier to do ad hoc profiling on our codebase, particularly by running tests. (imported from commit 71da06feb3a369dec8dc4d8391f7f40e4c2d02ff)