Add profiling support with stackprof.
Update docs to explain how singleton example groups work.