From 64788299f1006c6dba9558ab94e45a740cae2c41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 2 Dec 2019 11:06:46 +0900 Subject: [PATCH] [neurun] Make ChromeTrace trace the entire graph (#9300) Make ChromeTrace trace the entire graph Signed-off-by: Hanjoung Lee --- runtime/neurun/core/src/exec/ExecutionObservers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/neurun/core/src/exec/ExecutionObservers.cc b/runtime/neurun/core/src/exec/ExecutionObservers.cc index 46f89fb..03c48b2 100644 --- a/runtime/neurun/core/src/exec/ExecutionObservers.cc +++ b/runtime/neurun/core/src/exec/ExecutionObservers.cc @@ -87,7 +87,7 @@ ChromeTracingObserver::~ChromeTracingObserver() { _recorder.fini(); } void ChromeTracingObserver::handleBegin(IExecutor *) { - // TODO Record the run of the entire graph begin + _collector.onEvent(EventCollector::Event{EventCollector::Edge::BEGIN, "runtime", "Graph"}); } void ChromeTracingObserver::handleBegin(IExecutor *, const model::Subgraph *subgraph, @@ -108,7 +108,7 @@ void ChromeTracingObserver::handleEnd(IExecutor *, const model::Subgraph *subgra void ChromeTracingObserver::handleEnd(IExecutor *) { - // TODO Record the run of the entire graph end + _collector.onEvent(EventCollector::Event{EventCollector::Edge::END, "runtime", "Graph"}); } std::string ChromeTracingObserver::subgraphTag(const model::Subgraph *subgraph) -- 2.7.4