Home
last modified time | relevance | path

Searched refs:stat_type (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/profiler/utils/
Dxplane_visitor.cc128 absl::optional<int64_t> stat_type = stat_type_getter(metadata.name()); in BuildStatTypeMap() local
129 if (stat_type.has_value()) { in BuildStatTypeMap()
130 auto result = stat_type_by_id_.emplace(metadata_id, *stat_type); in BuildStatTypeMap()
132 stat_metadata_by_type_.emplace(*stat_type, &metadata); in BuildStatTypeMap()
155 int64_t stat_type) const { in GetStatMetadataByType()
156 const auto it = stat_metadata_by_type_.find(stat_type); in GetStatMetadataByType()
Dxplane_schema.cc333 absl::string_view GetStatTypeStr(StatType stat_type) { in GetStatTypeStr() argument
334 return GetStatTypeStrMap().at(stat_type); in GetStatTypeStr()
338 if (auto stat_type = gtl::FindOrNull(GetStatTypeMap(), stat_name)) { in FindStatType() local
339 return *stat_type; in FindStatType()
367 bool IsInternalStat(absl::optional<int64_t> stat_type) { in IsInternalStat() argument
369 if (!stat_type.has_value()) return false; in IsInternalStat()
370 switch (*stat_type) { in IsInternalStat()
Dxplane_visitor.h104 absl::optional<XStatVisitor> GetStat(int64_t stat_type) const;
108 int64_t stat_type, const XStatMetadata& stat_metadata) const { in GetStat() argument
111 return XStatVisitor(plane_, &stat, &stat_metadata, stat_type); in GetStat()
305 const XStatMetadata* GetStatMetadataByType(int64_t stat_type) const;
327 absl::optional<XStatVisitor> XStatsOwner<T>::GetStat(int64_t stat_type) const { in GetStat() argument
328 const auto* stat_metadata = plane_->GetStatMetadataByType(stat_type); in GetStat()
330 return GetStat(stat_type, *stat_metadata); in GetStat()
Dxplane_schema.h305 absl::string_view GetStatTypeStr(StatType stat_type);
307 bool IsStatType(StatType stat_type, absl::string_view stat_name);
309 inline bool IsStatType(StatType stat_type, absl::string_view stat_name) { in IsStatType() argument
310 return GetStatTypeStr(stat_type) == stat_name; in IsStatType()
319 bool IsInternalStat(absl::optional<int64_t> stat_type);
Dgroup_events.cc281 int64_t stat_type) const { in GetContextStat()
288 if (absl::optional<XStatVisitor> stat = node->visitor_.GetStat(stat_type)) { in GetContextStat()
319 XStat* EventNode::FindOrAddStatByType(int64_t stat_type) { in FindOrAddStatByType() argument
321 const XStatMetadata* stat_metadata = plane.GetStatMetadataByType(stat_type); in FindOrAddStatByType()
446 for (auto stat_type : parent_stat_types) { in ConnectInterThread() local
448 parent_event_node.GetContextStat(stat_type); in ConnectInterThread()
461 for (auto stat_type : *child_stat_types) { in ConnectInterThread()
463 child_event_node.GetContextStat(stat_type); in ConnectInterThread()
Dxplane_test_utils.cc78 StatType stat_type = stat_type_and_value.first; in CreateXEvent() local
82 plane_builder->GetOrCreateStatMetadata(GetStatTypeStr(stat_type))); in CreateXEvent()
Dgroup_events.h87 absl::optional<XStatVisitor> GetContextStat(int64_t stat_type) const;
114 XStat* FindOrAddStatByType(int64_t stat_type);
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc211 Mutex::Mutex(MutexType type, StatType stat_type) { in Mutex() argument
218 stat_type_ = stat_type; in Mutex()
Dtsan_mutex.h45 explicit Mutex(MutexType type, StatType stat_type);