Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/profiler/utils/
Dxplane_schema.cc267 absl::string_view GetStatTypeStr(StatType stat_type) { in GetStatTypeStr() argument
268 return GetStatTypeStrMap().at(stat_type); in GetStatTypeStr()
272 if (auto stat_type = gtl::FindOrNull(GetStatTypeMap(), stat_name)) { in FindStatType() local
273 return *stat_type; in FindStatType()
301 bool IsInternalStat(absl::optional<int64> stat_type) { in IsInternalStat() argument
303 if (!stat_type.has_value()) return false; in IsInternalStat()
304 switch (*stat_type) { in IsInternalStat()
Dxplane_visitor.cc128 absl::optional<int64> 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()
154 int64 stat_type) const { in GetStatMetadataByType()
155 const auto it = stat_metadata_by_type_.find(stat_type); in GetStatMetadataByType()
Dxplane_visitor.h101 absl::optional<XStatVisitor> GetStat(int64 stat_type) const;
105 int64 stat_type, const XStatMetadata& stat_metadata) const { in GetStat() argument
108 return XStatVisitor(plane_, &stat, &stat_metadata, stat_type); in GetStat()
275 const XStatMetadata* GetStatMetadataByType(int64 stat_type) const;
297 absl::optional<XStatVisitor> XStatsOwner<T>::GetStat(int64 stat_type) const { in GetStat() argument
298 const auto* stat_metadata = plane_->GetStatMetadataByType(stat_type); in GetStat()
300 return GetStat(stat_type, *stat_metadata); in GetStat()
Dxplane_schema.h236 absl::string_view GetStatTypeStr(StatType stat_type);
238 bool IsStatType(StatType stat_type, absl::string_view stat_name);
240 inline bool IsStatType(StatType stat_type, absl::string_view stat_name) { in IsStatType() argument
241 return GetStatTypeStr(stat_type) == stat_name; in IsStatType()
250 bool IsInternalStat(absl::optional<int64> stat_type);
Dxplane_test_utils.cc66 StatType stat_type = stat_type_and_value.first; in CreateXEvent() local
70 plane_builder->GetOrCreateStatMetadata(GetStatTypeStr(stat_type))); in CreateXEvent()
Dgroup_events.cc390 absl::optional<XStatVisitor> EventNode::GetContextStat(int64 stat_type) const { in GetContextStat()
397 if (absl::optional<XStatVisitor> stat = node->visitor_.GetStat(stat_type)) { in GetContextStat()
428 XStat* EventNode::FindOrAddStatByType(int64 stat_type) { in FindOrAddStatByType() argument
429 const XStatMetadata* stat_metadata = plane_->GetStatMetadataByType(stat_type); in FindOrAddStatByType()
556 for (auto stat_type : parent_stat_types) { in ConnectInterThread() local
558 parent_event_node->GetContextStat(stat_type); in ConnectInterThread()
571 for (auto stat_type : *child_stat_types) { in ConnectInterThread()
573 child_event_node->GetContextStat(stat_type); in ConnectInterThread()
Dgroup_events.h94 absl::optional<XStatVisitor> GetContextStat(int64 stat_type) const;
129 XStat* FindOrAddStatByType(int64 stat_type);
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.h44 explicit Mutex(MutexType type, StatType stat_type);
Dtsan_mutex.cpp210 Mutex::Mutex(MutexType type, StatType stat_type) { in Mutex() argument
217 stat_type_ = stat_type; in Mutex()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.h45 explicit Mutex(MutexType type, StatType stat_type);
Dtsan_mutex.cc211 Mutex::Mutex(MutexType type, StatType stat_type) { in Mutex() argument
218 stat_type_ = stat_type; in Mutex()