Define constructor for profile context (#2597)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 5 Sep 2018 05:41:56 +0000 (14:41 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 5 Sep 2018 05:41:56 +0000 (14:41 +0900)
Define constructor for profile context to initialize field

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
include/util/profiling/profiling.h

index 958369d..3365dc8 100644 (file)
@@ -56,6 +56,9 @@ namespace profiling
 class Context
 {
 public:
+  Context() : _sync(), _profiler(nullptr) {}
+
+public:
   const Sync &sync(void) const { return _sync; }
   tflite::profiling::Profiler* getProfiler() { return _profiler; }
   void setProfiler(tflite::profiling::Profiler* p) { _profiler = p; }