Home
last modified time | relevance | path

Searched refs:EventCollector (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/platform/
Dtracing.h45 class EventCollector {
47 virtual ~EventCollector() {} in ~EventCollector()
58 friend void SetEventCollector(EventCategory, const EventCollector*);
59 friend const EventCollector* GetEventCollector(EventCategory);
61 static std::array<const EventCollector*, GetNumEventCategories()> instances_;
65 void SetEventCollector(EventCategory category, const EventCollector* collector);
69 inline const EventCollector* GetEventCollector(EventCategory category) { in GetEventCollector()
70 if (EventCollector::IsEnabled()) { in GetEventCollector()
71 return EventCollector::instances_[static_cast<unsigned>(category)]; in GetEventCollector()
134 const EventCollector* collector_;
Dtracing.cc42 std::array<const EventCollector*, GetNumEventCategories()>
43 EventCollector::instances_;
46 const EventCollector* collector) { in SetEventCollector()
47 EventCollector::instances_[static_cast<unsigned>(category)] = collector; in SetEventCollector()
Dthreadpool.cc68 if (tracing::EventCollector::IsEnabled()) { in CreateTask()
/external/python/cpython2/Lib/test/
Dtest_sgmllib.py8 class EventCollector(sgmllib.SGMLParser): class
62 class CDATAEventCollector(EventCollector):
68 class HTMLEntityCollector(EventCollector):
76 return EventCollector.convert_charref(self, name)
80 EventCollector.convert_codepoint(self, codepoint)
84 return EventCollector.convert_entityref(self, name)
101 collector = EventCollector
127 parser = EventCollector()
Dtest_htmlparser.py9 class EventCollector(HTMLParser.HTMLParser): class
66 class EventCollectorExtra(EventCollector):
69 EventCollector.handle_starttag(self, tag, attrs)
75 def _run_check(self, source, expected_events, collector=EventCollector):
375 class Collector(EventCollector):
/external/python/cpython3/Lib/test/
Dtest_htmlparser.py8 class EventCollector(html.parser.HTMLParser): class
65 class EventCollectorExtra(EventCollector):
68 EventCollector.handle_starttag(self, tag, attrs)
72 class EventCollectorCharrefs(EventCollector):
84 return EventCollector(convert_charrefs=False)
301 class Collector(EventCollector):
628 parser = EventCollector(convert_charrefs=True)
/external/tensorflow/tensorflow/core/platform/default/
Dtracing_impl.h36 inline bool EventCollector::IsEnabled() { return false; } in IsEnabled()
Dtracing.cc33 void EventCollector::SetCurrentThreadName(const char*) {} in SetCurrentThreadName()
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_util.cc167 if (!tracing::EventCollector::IsEnabled()) { in SchedClosure()
Dexecutor.cc357 const tracing::EventCollector* const event_collector_;
530 bool MightTrace(const tracing::EventCollector* event_collector, in MightTrace()
/external/tensorflow/tensorflow/core/framework/
Drun_handler.cc71 if (tracing::EventCollector::IsEnabled()) { in CreateTask()