add_library(${PROJECT_NAME} SHARED ${MV_INFERENCE_SOURCE_LIST})
endif()
+IF (${ENABLE_INFERENCE_PROFILER})
+ MESSAGE("Enabled Mediavision Inference Engine Profiler.")
+ ADD_DEFINITIONS(-DENABLE_INFERENCE_PROFILER)
+ENDIF()
+
target_link_libraries(${PROJECT_NAME} ${MV_COMMON_LIB_NAME} ${OpenCV_LIBS} ${${PROJECT_NAME}_DEP_LIBRARIES})
target_include_directories(${PROJECT_NAME} PRIVATE include)
install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
// Create a backend class object.
try {
mBackend = new InferenceEngineCommon();
+
+#if ENABLE_INFERENCE_PROFILER
+ mBackend->EnableProfiler(true);
+ mBackend->DumpProfileToFile("profile_data_" + backendName + ".txt");
+#endif
} catch (const std::bad_alloc &ex) {
LOGE("Fail to create backend : %s", ex.what());
return MEDIA_VISION_ERROR_OUT_OF_MEMORY;
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.13.2
+Version: 0.14.0
Release: 0
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause
BuildRequires: gtest-devel
%endif
+# Build options
+# ENABLE_INFERENCE_PROFILER
+# 0 : disable Mediavision inference engine profiler, 1 : enable Mediavision inference engine profiler.
+%define build_options -DENABLE_INFERENCE_PROFILER=0
+
Requires: %{name}-machine_learning
%if !0%{?ml_only:1}
Requires: %{name}-barcode
export LDFLAGS+=" -lgcov"
%endif
-%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo %{build_options} \
%if 0%{?ml_only:1}
-DBUILD_ML_ONLY=ON \
%endif