/external/tensorflow/tensorflow/core/profiler/convert/ |
D | xplane_to_memory_profile_test.cc | 43 {{StatType::kBytesReserved, int64_t{2000}}, in TEST() 44 {StatType::kBytesAllocated, int64_t{3000}}, in TEST() 45 {StatType::kBytesAvailable, int64_t{5000}}, in TEST() 46 {StatType::kPeakBytesInUse, int64_t{8500}}, in TEST() 47 {StatType::kRequestedBytes, int64_t{200}}, in TEST() 48 {StatType::kAllocationBytes, int64_t{256}}, in TEST() 49 {StatType::kAddress, int64_t{222333}}, in TEST() 50 {StatType::kStepId, int64_t{-93746}}, in TEST() 51 {StatType::kDataType, int64_t{1}}, in TEST() 52 {StatType::kAllocatorName, "GPU_0_bfc"}, in TEST() [all …]
|
D | xplane_to_step_events_test.cc | 54 0, 100, {{StatType::kStepNum, kFirstStepNum}}); in TEST() 56 10, 90, {{StatType::kStepId, kFirstStepId}}); in TEST() 58 300, 100, {{StatType::kStepNum, kSecondStepNum}}); in TEST() 60 310, 90, {{StatType::kStepId, kSecondStepId}}); in TEST() 65 {{StatType::kStepId, kFirstStepId}}); in TEST() 67 {{StatType::kCorrelationId, kFirstCorrelationId}}); in TEST() 70 {{StatType::kStepId, kSecondStepId}}); in TEST() 72 {{StatType::kCorrelationId, kSecondCorrelationId}}); in TEST() 80 {{StatType::kCorrelationId, kFirstCorrelationId}}); in TEST()
|
D | xplane_to_op_stats_test.cc | 59 GetStatTypeStr(StatType::kDevVendor)), in TEST() 90 GetStatTypeStr(StatType::kDevVendor)), in TEST() 95 GetStatTypeStr(StatType::kDevVendor)), in TEST() 118 0, 100, {{StatType::kStepNum, kStepNum}}); in TEST() 120 10, 90, {{StatType::kStepId, kStepId}}); in TEST() 125 {{StatType::kStepId, kStepId}}); in TEST() 149 0, 100, {{StatType::kStepNum, kStepNum}}); in TEST() 151 10, 90, {{StatType::kStepId, kStepId}}); in TEST() 156 {{StatType::kStepId, kStepId}}); in TEST() 158 {{StatType::kCorrelationId, kCorrelationId}}); in TEST() [all …]
|
D | xplane_to_kernel_stats_db_test.cc | 43 {{StatType::kTfOp, "mul_786"}, in TEST() 44 {StatType::kKernelDetails, R"MULTI(regs:16 in TEST() 50 {StatType::kEquation, ""}}); in TEST() 54 {{StatType::kTfOp, "Conv2D"}, in TEST() 55 {StatType::kKernelDetails, R"MULTI(regs:32 in TEST() 61 {StatType::kEquation, ""}}); in TEST() 66 {{StatType::kTfOp, "Einsum_80"}, in TEST() 67 {StatType::kKernelDetails, R"MULTI(regs:32 in TEST() 73 {StatType::kEquation, ""}}); in TEST()
|
D | xplane_to_tf_data_stats_test.cc | 48 100000000, {{StatType::kStepId, kPrefetchIteratorId}}); in TEST() 51 {{StatType::kElementId, kFirstElementId}}); in TEST() 53 200000000, 20000000, {{StatType::kStepId, kPrefetchIteratorId}}); in TEST() 56 {{StatType::kElementId, kSecondElementId}}); in TEST() 62 {{StatType::kElementId, kFirstElementId}}); in TEST() 65 {{StatType::kStepId, kRangeIteratorId}, in TEST() 66 {StatType::kParentId, kPrefetchIteratorId}}); in TEST() 70 {{StatType::kElementId, kSecondElementId}}); in TEST() 73 {{StatType::kStepId, kRangeIteratorId}, in TEST() 74 {StatType::kParentId, kPrefetchIteratorId}}); in TEST()
|
D | xplane_to_op_metrics_db.cc | 147 event.GetStat(StatType::kIsEager)) { in CollectTfActivities() 168 switch (static_cast<StatType>(*stat.Type())) { in GetOpKeyFromHloEventMetadata() 169 case StatType::kProgramId: in GetOpKeyFromHloEventMetadata() 172 case StatType::kSymbolId: in GetOpKeyFromHloEventMetadata() 193 switch (static_cast<StatType>(*stat.Type())) { in SetOpMetadataFromHloEventMetadata() 194 case StatType::kHloCategory: in SetOpMetadataFromHloEventMetadata() 197 case StatType::kTfOpName: in SetOpMetadataFromHloEventMetadata() 200 case StatType::kFlops: in SetOpMetadataFromHloEventMetadata() 203 case StatType::kBytesAccessed: in SetOpMetadataFromHloEventMetadata() 227 switch (static_cast<StatType>(*stat.Type())) { in SetOpMetricsFromHloEvent() [all …]
|
D | xplane_to_profile_response_test.cc | 54 StatType::kDevCapPeakTeraflopsPerSecond)), in CreateXSpace() 57 StatType::kDevCapPeakHbmBwGigabytesPerSecond)), in CreateXSpace() 68 StatType::kDevCapPeakTeraflopsPerSecond)), in CreateXSpace() 71 StatType::kDevCapPeakHbmBwGigabytesPerSecond)), in CreateXSpace() 85 StatType::kDevCapPeakTeraflopsPerSecond)), in CreateXSpace() 88 StatType::kDevCapPeakHbmBwGigabytesPerSecond)), in CreateXSpace() 103 GetStatTypeStr(StatType::kMatrixUnitUtilizationPercent)), in TEST() 106 StatType::kDevCapPeakTeraflopsPerSecond)), in TEST() 109 StatType::kDevCapPeakHbmBwGigabytesPerSecond)), in TEST() 112 GetStatTypeStr(StatType::kDevCapCoreCount)), in TEST()
|
D | xplane_to_memory_profile.cc | 111 case StatType::kIndexOnHost: in GenerateMemoryProfile() 112 case StatType::kDeviceOrdinal: in GenerateMemoryProfile() 115 case StatType::kAllocatorName: in GenerateMemoryProfile() 118 case StatType::kBytesReserved: in GenerateMemoryProfile() 121 case StatType::kBytesAllocated: in GenerateMemoryProfile() 124 case StatType::kBytesAvailable: in GenerateMemoryProfile() 127 case StatType::kFragmentation: in GenerateMemoryProfile() 130 case StatType::kPeakBytesInUse: in GenerateMemoryProfile() 133 case StatType::kRequestedBytes: in GenerateMemoryProfile() 136 case StatType::kAllocationBytes: in GenerateMemoryProfile() [all …]
|
D | xplane_to_step_events.cc | 135 case StatType::kCorrelationId: in ConvertHostThreadsXLineToStepEvents() 138 case StatType::kGroupId: in ConvertHostThreadsXLineToStepEvents() 141 case StatType::kStepName: in ConvertHostThreadsXLineToStepEvents() 189 if (absl::optional<XStatVisitor> stat = event.GetStat(StatType::kGroupId)) { in ConvertDeviceStepInfoToStepMarkers() 209 case StatType::kCorrelationId: in ConvertDeviceTraceXLineToStepEvents() 212 case StatType::kGroupId: in ConvertDeviceTraceXLineToStepEvents() 215 case StatType::kTensorShapes: in ConvertDeviceTraceXLineToStepEvents() 218 case StatType::kMemcpyDetails: in ConvertDeviceTraceXLineToStepEvents()
|
D | xplane_to_op_metrics_db_test.cc | 55 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kTfOp)), in AddTensorFlowTpuOpEvent() 58 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kHloCategory)), in AddTensorFlowTpuOpEvent() 61 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kFlops)), flops); in AddTensorFlowTpuOpEvent() 63 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kSymbolId)), in AddTensorFlowTpuOpEvent() 66 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kProgramId)), in AddTensorFlowTpuOpEvent() 80 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kTfOp)), in AddTensorFlowOpEvent()
|
D | xplane_to_op_stats.cc | 90 visitor.GetStat(StatType::kDevCapPeakTeraflopsPerSecond); in GetPerfEnvFromXPlane() 92 visitor.GetStat(StatType::kDevCapPeakHbmBwGigabytesPerSecond); in GetPerfEnvFromXPlane() 119 auto xstat = visitor.GetStat(StatType::kDeviceTypeString); in SetRunEnvironment() 215 auto stat = visitor.GetStat(StatType::kMatrixUnitUtilizationPercent); in ConvertXSpaceToOpStats()
|
/external/tensorflow/tensorflow/core/profiler/utils/ |
D | group_events_test.cc | 50 {{StatType::kGraphType, "train"}, {StatType::kStepNum, kStepNum}}); in TEST() 52 10, 90, {{StatType::kStepId, kStepId}}); in TEST() 57 {{StatType::kStepId, kStepId}}); in TEST() 59 {{StatType::kCorrelationId, kCorrelationId}}); in TEST() 67 {{StatType::kCorrelationId, kCorrelationId}}); in TEST() 77 StatType::kGroupId); in TEST() 94 {{StatType::kStepNum, kStepNum}, {StatType::kIsRoot, int64_t{1}}}); in TEST() 96 10, 90, {{StatType::kStepId, kStepId}}); in TEST() 101 {{StatType::kStepId, kStepId}}); in TEST() 103 {{StatType::kCorrelationId, kCorrelationId}}); in TEST() [all …]
|
D | gpu_event_stats.cc | 34 case StatType::kTfOp: in GpuEventStats() 37 case StatType::kEquation: in GpuEventStats() 40 case StatType::kTensorShapes: in GpuEventStats() 43 case StatType::kHloOp: in GpuEventStats() 47 case StatType::kHloModule: in GpuEventStats() 50 case StatType::kProgramId: in GpuEventStats() 53 case StatType::kKernelDetails: in GpuEventStats() 56 case StatType::kMemcpyDetails: in GpuEventStats() 59 case StatType::kCorrelationId: in GpuEventStats() 62 case StatType::kGroupId: in GpuEventStats() [all …]
|
D | device_caps_utils.cc | 31 GetStatTypeStr(StatType::kDevCapClockRateKHz)), in SetDeviceCaps() 34 GetStatTypeStr(StatType::kDevCapCoreCount)), in SetDeviceCaps() 37 GetStatTypeStr(StatType::kDevCapMemoryBandwidth)), in SetDeviceCaps() 40 GetStatTypeStr(StatType::kDevCapMemorySize)), in SetDeviceCaps() 44 GetStatTypeStr(StatType::kDevCapComputeCapMajor)), in SetDeviceCaps() 47 GetStatTypeStr(StatType::kDevCapComputeCapMinor)), in SetDeviceCaps() 51 *xplane.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kDevVendor)), in SetDeviceCaps() 61 case StatType::kDevCapClockRateKHz: in GetDeviceCaps() 64 case StatType::kDevCapCoreCount: in GetDeviceCaps() 67 case StatType::kDevCapMemoryBandwidth: in GetDeviceCaps() [all …]
|
D | derived_timeline_test.cc | 51 {{StatType::kHloModule, kHloModuleName}, in TEST() 52 {StatType::kKernelDetails, kKernelDetails}}); in TEST() 54 {{StatType::kHloModule, kHloModuleName}, in TEST() 55 {StatType::kKernelDetails, kKernelDetails}}); in TEST() 81 {{StatType::kTfOp, kTfOpName}, in TEST() 82 {StatType::kKernelDetails, kKernelDetails}}); in TEST() 84 {{StatType::kTfOp, kTfOpName}, in TEST() 85 {StatType::kKernelDetails, kKernelDetails}}); in TEST() 116 {{StatType::kGroupId, kFirstGroupId}, in TEST() 117 {StatType::kTfOp, kTfOpName}, in TEST() [all …]
|
D | xplane_schema.cc | 64 StatType::kLastStatType - StatType::kFirstStatType + 1; 69 using StatTypeMap = absl::flat_hash_map<absl::string_view, StatType>; 70 using StatTypeStrMap = absl::flat_hash_map<StatType, absl::string_view>; 333 absl::string_view GetStatTypeStr(StatType stat_type) { in GetStatTypeStr() 371 case StatType::kKernelDetails: in IsInternalStat() 372 case StatType::kProducerType: in IsInternalStat() 373 case StatType::kProducerId: in IsInternalStat() 374 case StatType::kConsumerType: in IsInternalStat() 375 case StatType::kConsumerId: in IsInternalStat() 376 case StatType::kIsRoot: in IsInternalStat() [all …]
|
D | group_events.cc | 51 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kGroupId)); in CreateStatMetadata() 52 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kStepName)); in CreateStatMetadata() 53 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kIsEager)); in CreateStatMetadata() 59 if (event.GetStat(StatType::kCorrelationId).has_value()) { in GetKernelEventType() 119 case StatType::kProducerType: in GroupingEventStats() 122 case StatType::kProducerId: in GroupingEventStats() 125 case StatType::kConsumerType: in GroupingEventStats() 128 case StatType::kConsumerId: in GroupingEventStats() 131 case StatType::kIsRoot: in GroupingEventStats() 134 case StatType::kIsAsync: in GroupingEventStats() [all …]
|
D | xplane_test_utils.cc | 72 std::initializer_list<std::pair<StatType, XStatValue>> stats) { in CreateXEvent() argument 78 StatType stat_type = stat_type_and_value.first; in CreateXEvent() 90 std::initializer_list<std::pair<StatType, XStatValue>> stats) { in CreateXEvent() argument 105 {{StatType::kTfFunctionCall, execution_mode}, in CreateTfFunctionCallEvent() 106 {StatType::kTfFunctionTracingCount, tracing_count}}); in CreateTfFunctionCallEvent() 109 duration_ps, {{StatType::kTfFunctionCall, execution_mode}}); in CreateTfFunctionCallEvent()
|
D | derived_timeline.cc | 128 plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kGroupId))), in DerivedXLineBuilder() 192 plane->GetStatMetadata(GetStatTypeStr(StatType::kGroupId)); in AddGroupMetadataToStepEvents() 195 plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kStepName)); in AddGroupMetadataToStepEvents() 213 plane_visitor.GetStatMetadataByType(StatType::kGroupId); in DeriveStepEventsFromGroups() 222 event_visitor.GetStat(StatType::kGroupId, *group_id_stat_metadata); in DeriveStepEventsFromGroups() 339 GetStatTypeStr(StatType::kGroupId)); in DeriveEventsFromHostTrace() 411 if (stat.Type() == StatType::kTfOp) { in DeriveLinesFromStats() 413 } else if (stat.Type() == StatType::kGroupId) { in DeriveLinesFromStats() 415 } else if (stat.Type() == StatType::kSourceInfo) { in DeriveLinesFromStats()
|
D | xplane_utils.cc | 359 plane.GetStatMetadata(GetStatTypeStr(StatType::kCorrelationId)); in AddFlowsToXplane() 361 plane.GetStatMetadata(GetStatTypeStr(StatType::kProducerType)); in AddFlowsToXplane() 363 plane.GetStatMetadata(GetStatTypeStr(StatType::kConsumerType)); in AddFlowsToXplane() 365 plane.GetStatMetadata(GetStatTypeStr(StatType::kProducerId)); in AddFlowsToXplane() 367 plane.GetStatMetadata(GetStatTypeStr(StatType::kConsumerId)); in AddFlowsToXplane() 369 plane.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kFlow)); in AddFlowsToXplane() 523 GetStatTypeStr(StatType::kMinDurationPs)); in AggregateXPlane() 525 GetStatTypeStr(StatType::kSelfDurationPs)); in AggregateXPlane() 540 GetStatTypeStr(StatType::kMinDurationPs)), in AggregateXPlane() 546 GetStatTypeStr(StatType::kSelfDurationPs)), in AggregateXPlane()
|
D | xplane_test_utils.h | 41 std::initializer_list<std::pair<StatType, XStatValue>> stats = {}); 46 std::initializer_list<std::pair<StatType, XStatValue>> stats = {});
|
/external/scudo/standalone/ |
D | stats.h | 22 enum StatType { StatAllocated, StatFree, StatMapped, StatCount }; enum 35 DCHECK_EQ(get(static_cast<StatType>(I)), 0U); in init() 38 void add(StatType I, uptr V) { in add() 43 void sub(StatType I, uptr V) { in sub() 48 void set(StatType I, uptr V) { atomic_store_relaxed(&StatsArray[I], V); } in set() 50 uptr get(StatType I) const { return atomic_load_relaxed(&StatsArray[I]); } in get() 73 add(static_cast<StatType>(I), S->get(static_cast<StatType>(I))); in unlink() 79 S[I] = LocalStats::get(static_cast<StatType>(I)); in get() 82 S[I] += Stats.get(static_cast<StatType>(I)); in get()
|
/external/tensorflow/tensorflow/core/profiler/backends/gpu/ |
D | cupti_collector.cc | 147 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kDeviceId)), in CreateXEvent() 152 GetStatTypeStr(StatType::kCorrelationId)), in CreateXEvent() 157 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kNVTXRange)), in CreateXEvent() 162 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kContextId)), in CreateXEvent() 188 StatType::kTheoreticalOccupancyPct)), in CreateXEvent() 191 GetStatTypeStr(StatType::kOccupancyMinGridSize)), in CreateXEvent() 194 StatType::kOccupancySuggestedBlockSize)), in CreateXEvent() 197 GetStatTypeStr(StatType::kKernelDetails)), in CreateXEvent() 213 GetStatTypeStr(StatType::kMemcpyDetails)), in CreateXEvent() 221 GetStatTypeStr(StatType::kMemallocDetails)), in CreateXEvent() [all …]
|
D | device_tracer_rocm.cc | 535 GetStatTypeStr(StatType::kDevVendor)), in GetDeviceCapabilities() 547 GetStatTypeStr(StatType::kDevCapClockRateKHz)), in GetDeviceCapabilities() 555 GetStatTypeStr(StatType::kDevCapCoreCount)), in GetDeviceCapabilities() 569 GetStatTypeStr(StatType::kDevCapMemoryBandwidth)), in GetDeviceCapabilities() 577 GetStatTypeStr(StatType::kDevCapMemorySize)), in GetDeviceCapabilities() 585 GetStatTypeStr(StatType::kDevCapComputeCapMajor)), in GetDeviceCapabilities() 592 GetStatTypeStr(StatType::kDevCapComputeCapMinor)), in GetDeviceCapabilities() 686 GetStatTypeStr(StatType::kDeviceId)), in CreateXEvent() 691 GetStatTypeStr(StatType::kCorrelationId)), in CreateXEvent() 696 GetStatTypeStr(StatType::kNVTXRange)), in CreateXEvent() [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_mutex.h | 45 explicit Mutex(MutexType type, StatType stat_type); 62 StatType stat_type_;
|