Commit d1d8c4a7 authored by Jaikrishnan Menon's avatar Jaikrishnan Menon Committed by Scott Cyphers

Disallow tracing control outside of init to save some microseconds (#1353)

parent f277e1c2
......@@ -73,5 +73,6 @@ void ngraph::runtime::cpu::GenerateTimeline(const std::vector<OpAttributes>& op_
bool ngraph::runtime::cpu::IsTracingEnabled()
{
return (std::getenv("NGRAPH_CPU_TRACING") != nullptr);
static bool enabled = (std::getenv("NGRAPH_CPU_TRACING") != nullptr);
return enabled;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment