OpenCV TickMeter vs External Profiler for Primitive-Level Bottleneck Attribution
When profiling an OpenCV image-processing pipeline — decode, resize, color conversion, inference — the documented approach wraps each stage in cv::TickMeter (C++) or cv2.getTickCount() (Python) and runs many iterations after a warm-up pass. This yields reliable per-stage wall times, but it cannot break down time spent inside a single optimized primitive such