[WRTjs][VD]when the wrt-loader is terminated, reset the WRTProfiler. 87/317987/4
authorYoungman Son <yman.son@samsung.com>
Mon, 23 Sep 2024 09:05:13 +0000 (18:05 +0900)
committerBot Blink <blinkbot@samsung.com>
Thu, 26 Sep 2024 04:19:36 +0000 (04:19 +0000)
reset of WRTProfiler is attempted at the end of the app.
It is too late and inefficient.

Change-Id: Ie6e3bc9fbd8c8707405005d2b1872d7e481d3134
Signed-off-by: Youngman Son <yman.son@samsung.com>
wrt/src/common/tv/wrt_profiler.cc

index 858c6257f8f373e4266ece537f6463a1951d98b7..3a32b747350d7e652f23b55ec18cbfeda7dc2d7a 100644 (file)
@@ -64,8 +64,10 @@ void WRTProfiler::Start() {
 
 // static
 void WRTProfiler::Stop() {
-  if (monitoring_timer.IsRunning())
+  if (monitoring_timer.IsRunning()) {
     monitoring_timer.Stop();
+    monitoring_timer.Reset();
+  }
 }
 
 WRTProfiler::WRTProfiler() {