What is the meaning of CV_INSTRUMENT_REGION ()?

I read the opencv source code and I don't understand the CV_INSTRUMENT_REGION () function called by another function. The CV_INSTRUMENT_REGION () function usually appears at the beginning of another function body. Can anybody help? THX

+7
c ++ opencv
source share
1 answer

You can check the corresponding traction request for more information: Implementing the tool environment for the OpenCV performance testing system .

Toolkit for OpenCV performance testing system. It was designed for:

  • Running tracks inside OpenCV functions with call tree output to test logs
  • monitoring the implementation of run-time in the pipeline

Framework can be enabled with ENABLE_INSTRUMENTATION define in CMake and disabled by default. When disabled, it does not consume resources.

Update:

OpenCV 3.3 added support for tracing / profiling OpenCV applications for users. For more information see:

+5
source share

All Articles