[profiler] Added block support, documented, and moved to utils.