Sketch of what a more complete profiler might look like.