Home
last modified time | relevance | path

Searched refs:StatType (Results 1 – 25 of 51) sorted by relevance

123

/external/tensorflow/tensorflow/core/profiler/convert/
Dxplane_to_memory_profile_test.cc43 {{StatType::kBytesReserved, int64{2000}}, in TEST()
44 {StatType::kBytesAllocated, int64{3000}}, in TEST()
45 {StatType::kBytesAvailable, int64{5000}}, in TEST()
46 {StatType::kPeakBytesInUse, int64{8500}}, in TEST()
47 {StatType::kRequestedBytes, int64{200}}, in TEST()
48 {StatType::kAllocationBytes, int64{256}}, in TEST()
49 {StatType::kAddress, int64{222333}}, in TEST()
50 {StatType::kStepId, int64{-93746}}, in TEST()
51 {StatType::kDataType, int64{1}}, in TEST()
52 {StatType::kAllocatorName, "GPU_0_bfc"}, in TEST()
[all …]
Dxplane_to_step_events_test.cc54 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()
Dxplane_to_kernel_stats_db_test.cc43 {{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()
Dxplane_to_tf_data_stats_test.cc48 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()
Dxplane_to_op_stats_test.cc106 0, 100, {{StatType::kStepNum, kStepNum}}); in TEST()
108 10, 90, {{StatType::kStepId, kStepId}}); in TEST()
113 {{StatType::kStepId, kStepId}}); in TEST()
137 0, 100, {{StatType::kStepNum, kStepNum}}); in TEST()
139 10, 90, {{StatType::kStepId, kStepId}}); in TEST()
144 {{StatType::kStepId, kStepId}}); in TEST()
146 {{StatType::kCorrelationId, kCorrelationId}}); in TEST()
154 {{StatType::kCorrelationId, kCorrelationId}}); in TEST()
206 0, 100, {{StatType::kStepNum, kStepNum}}); in BuildAndStoreXSpaceForTest()
208 10, 90, {{StatType::kStepId, kStepId}}); in BuildAndStoreXSpaceForTest()
[all …]
Dxplane_to_step_events.cc82 case StatType::kCorrelationId: in ConvertHostThreadsXLineToStepEvents()
85 case StatType::kGroupId: in ConvertHostThreadsXLineToStepEvents()
88 case StatType::kStepName: in ConvertHostThreadsXLineToStepEvents()
136 if (absl::optional<XStatVisitor> stat = event.GetStat(StatType::kGroupId)) { in ConvertDeviceStepInfoToStepMarkers()
156 case StatType::kCorrelationId: in ConvertDeviceTraceXLineToStepEvents()
159 case StatType::kGroupId: in ConvertDeviceTraceXLineToStepEvents()
162 case StatType::kTensorShapes: in ConvertDeviceTraceXLineToStepEvents()
165 case StatType::kMemcpyDetails: in ConvertDeviceTraceXLineToStepEvents()
Dxplane_to_memory_profile.cc109 case StatType::kIndexOnHost: in GenerateMemoryProfile()
110 case StatType::kDeviceOrdinal: in GenerateMemoryProfile()
113 case StatType::kAllocatorName: in GenerateMemoryProfile()
116 case StatType::kBytesReserved: in GenerateMemoryProfile()
119 case StatType::kBytesAllocated: in GenerateMemoryProfile()
122 case StatType::kBytesAvailable: in GenerateMemoryProfile()
125 case StatType::kFragmentation: in GenerateMemoryProfile()
128 case StatType::kPeakBytesInUse: in GenerateMemoryProfile()
131 case StatType::kRequestedBytes: in GenerateMemoryProfile()
134 case StatType::kAllocationBytes: in GenerateMemoryProfile()
[all …]
Dxplane_to_kernel_stats_db.cc55 case StatType::kTfOp: in ConvertDeviceTraceXPlaneToKernelReports()
56 case StatType::kLevel0: // old way to deliver tf_op info. in ConvertDeviceTraceXPlaneToKernelReports()
59 case StatType::kKernelDetails: { in ConvertDeviceTraceXPlaneToKernelReports()
70 case StatType::kEquation: in ConvertDeviceTraceXPlaneToKernelReports()
/external/tensorflow/tensorflow/core/profiler/utils/
Dgroup_events_test.cc52 {{StatType::kGraphType, "train"}, {StatType::kStepNum, kStepNum}}); in TEST()
54 10, 90, {{StatType::kStepId, kStepId}}); in TEST()
59 {{StatType::kStepId, kStepId}}); in TEST()
61 {{StatType::kCorrelationId, kCorrelationId}}); in TEST()
69 {{StatType::kCorrelationId, kCorrelationId}}); in TEST()
79 StatType::kGroupId); in TEST()
95 {{StatType::kStepNum, kStepNum}, {StatType::kIsRoot, int64{1}}}); in TEST()
97 10, 90, {{StatType::kStepId, kStepId}}); in TEST()
102 {{StatType::kStepId, kStepId}}); in TEST()
104 {{StatType::kCorrelationId, kCorrelationId}}); in TEST()
[all …]
Ddevice_caps_utils.cc30 GetStatTypeStr(StatType::kDevCapClockRateKHz)), in SetDeviceCaps()
33 GetStatTypeStr(StatType::kDevCapCoreCount)), in SetDeviceCaps()
36 GetStatTypeStr(StatType::kDevCapMemoryBandwidth)), in SetDeviceCaps()
39 GetStatTypeStr(StatType::kDevCapMemorySize)), in SetDeviceCaps()
43 GetStatTypeStr(StatType::kDevCapComputeCapMajor)), in SetDeviceCaps()
46 GetStatTypeStr(StatType::kDevCapComputeCapMinor)), in SetDeviceCaps()
57 case StatType::kDevCapClockRateKHz: in GetDeviceCaps()
60 case StatType::kDevCapCoreCount: in GetDeviceCaps()
63 case StatType::kDevCapMemoryBandwidth: in GetDeviceCaps()
66 case StatType::kDevCapMemorySize: in GetDeviceCaps()
[all …]
Dderived_timeline_test.cc51 {{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()
117 {{StatType::kGroupId, kFirstGroupId}, in TEST()
118 {StatType::kTfOp, kTfOpName}, in TEST()
[all …]
Dxplane_schema.cc50 StatType::kLastStatType - StatType::kFirstStatType + 1;
55 using StatTypeMap = absl::flat_hash_map<absl::string_view, StatType>;
56 using StatTypeStrMap = absl::flat_hash_map<StatType, absl::string_view>;
267 absl::string_view GetStatTypeStr(StatType stat_type) { in GetStatTypeStr()
305 case StatType::kKernelDetails: in IsInternalStat()
306 case StatType::kLevel0: in IsInternalStat()
307 case StatType::kProducerType: in IsInternalStat()
308 case StatType::kProducerId: in IsInternalStat()
309 case StatType::kConsumerType: in IsInternalStat()
310 case StatType::kConsumerId: in IsInternalStat()
[all …]
Dgroup_events.cc47 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kGroupId)); in CreateStatMetadata()
48 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kStepName)); in CreateStatMetadata()
49 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kIsEager)); in CreateStatMetadata()
50 builder.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kSelectedGroupIds)); in CreateStatMetadata()
56 if (event.GetEventVisitor().GetStat(StatType::kCorrelationId).has_value()) { in GetKernelEventType()
181 absl::optional<XStatVisitor> stat = event.GetStat(StatType::kStepId); in GetLegacyProducerContext()
203 event.GetStat(StatType::kFunctionStepId); in GetLegacyProducerContext()
226 absl::optional<XStatVisitor> stat = event.GetStat(StatType::kStepId); in GetLegacyConsumerContext()
340 case StatType::kProducerType: in EventNode()
343 case StatType::kProducerId: in EventNode()
[all …]
Dxplane_test_utils.cc60 std::initializer_list<std::pair<StatType, XStatValue>> stats) { in CreateXEvent() argument
66 StatType stat_type = stat_type_and_value.first; in CreateXEvent()
78 std::initializer_list<std::pair<StatType, XStatValue>> stats) { in CreateXEvent() argument
93 {{StatType::kTfFunctionCall, execution_mode}, in CreateTfFunctionCallEvent()
94 {StatType::kTfFunctionTracingCount, tracing_count}}); in CreateTfFunctionCallEvent()
97 duration_ps, {{StatType::kTfFunctionCall, execution_mode}}); in CreateTfFunctionCallEvent()
Dderived_timeline.cc72 plane_builder->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kGroupId)) in ProcessTfOpEvent()
161 plane.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kGroupId))->id(); in DeriveEventsFromAnnotations()
163 plane.GetOrCreateStatMetadata(GetStatTypeStr(StatType::kStepName))->id(); in DeriveEventsFromAnnotations()
175 if (stat.Type() == StatType::kGroupId) { in DeriveEventsFromAnnotations()
177 } else if (stat.Type() == StatType::kLevel0 || // old way to carry tf_op in DeriveEventsFromAnnotations()
178 stat.Type() == StatType::kTfOp) { in DeriveEventsFromAnnotations()
180 } else if (stat.Type() == StatType::kHloOp) { in DeriveEventsFromAnnotations()
183 } else if (stat.Type() == StatType::kHloModule) { in DeriveEventsFromAnnotations()
185 } else if (stat.Type() == StatType::kKernelDetails) { in DeriveEventsFromAnnotations()
265 if (stat.Type() == StatType::kGroupId) { in DeriveEventsFromHostTrace()
[all …]
Dcost_utils.cc94 case StatType::kTfOp: in Predict()
95 case StatType::kLevel0: // old way to deliver tf_op info. in Predict()
98 case StatType::kTensorShapes: in Predict()
Dxplane_schema.h121 enum StatType { enum
236 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()
Dxplane_test_utils.h38 std::initializer_list<std::pair<StatType, XStatValue>> stats = {});
43 std::initializer_list<std::pair<StatType, XStatValue>> stats = {});
/external/llvm-project/llvm/tools/llvm-xray/
Dxray-graph-diff.cpp105 static cl::opt<GraphRenderer::StatType> GraphDiffEdgeLabel(
108 cl::init(GraphRenderer::StatType::NONE),
109 cl::values(clEnumValN(GraphRenderer::StatType::NONE, "none",
111 clEnumValN(GraphRenderer::StatType::COUNT, "count",
113 clEnumValN(GraphRenderer::StatType::MIN, "min",
115 clEnumValN(GraphRenderer::StatType::MED, "med",
117 clEnumValN(GraphRenderer::StatType::PCT90, "90p",
119 clEnumValN(GraphRenderer::StatType::PCT99, "99p",
121 clEnumValN(GraphRenderer::StatType::MAX, "max",
123 clEnumValN(GraphRenderer::StatType::SUM, "sum",
[all …]
Dxray-graph.cpp58 static cl::opt<GraphRenderer::StatType>
62 cl::init(GraphRenderer::StatType::NONE),
63 cl::values(clEnumValN(GraphRenderer::StatType::NONE, "none",
65 clEnumValN(GraphRenderer::StatType::COUNT,
67 clEnumValN(GraphRenderer::StatType::MIN, "min",
69 clEnumValN(GraphRenderer::StatType::MED, "med",
71 clEnumValN(GraphRenderer::StatType::PCT90, "90p",
73 clEnumValN(GraphRenderer::StatType::PCT99, "99p",
75 clEnumValN(GraphRenderer::StatType::MAX, "max",
77 clEnumValN(GraphRenderer::StatType::SUM, "sum",
[all …]
Dxray-graph-diff.h31 using StatType = GraphRenderer::StatType;
62 void exportGraphAsDOT(raw_ostream &OS, StatType EdgeLabel = StatType::NONE,
63 StatType EdgeColor = StatType::NONE,
64 StatType VertexLabel = StatType::NONE,
65 StatType VertexColor = StatType::NONE,
Dxray-graph.h39 enum class StatType { NONE, COUNT, MIN, MED, PCT90, PCT99, MAX, SUM }; enum
51 std::string getString(StatType T) const;
52 double getDouble(StatType T) const;
156 void exportGraphAsDOT(raw_ostream &OS, StatType EdgeLabel = StatType::NONE,
157 StatType EdgeColor = StatType::NONE,
158 StatType VertexLabel = StatType::NONE,
159 StatType VertexColor = StatType::NONE);
/external/scudo/standalone/
Dstats.h21 enum StatType { StatAllocated, StatFree, StatMapped, StatCount }; enum
35 void add(StatType I, uptr V) { in add()
40 void sub(StatType I, uptr V) { in sub()
45 void set(StatType I, uptr V) { atomic_store_relaxed(&StatsArray[I], V); } in set()
47 uptr get(StatType I) const { return atomic_load_relaxed(&StatsArray[I]); } in get()
76 add(static_cast<StatType>(I), S->get(static_cast<StatType>(I))); in unlink()
82 S[I] = LocalStats::get(static_cast<StatType>(I)); in get()
85 S[I] += Stats.get(static_cast<StatType>(I)); in get()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dstats.h21 enum StatType { StatAllocated, StatFree, StatMapped, StatCount }; enum
35 void add(StatType I, uptr V) { in add()
40 void sub(StatType I, uptr V) { in sub()
45 void set(StatType I, uptr V) { atomic_store_relaxed(&StatsArray[I], V); } in set()
47 uptr get(StatType I) const { return atomic_load_relaxed(&StatsArray[I]); } in get()
76 add(static_cast<StatType>(I), S->get(static_cast<StatType>(I))); in unlink()
82 S[I] = LocalStats::get(static_cast<StatType>(I)); in get()
85 S[I] += Stats.get(static_cast<StatType>(I)); in get()
/external/tensorflow/tensorflow/core/profiler/internal/gpu/
Dcupti_collector.cc153 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kDeviceId)), in CreateXEvent()
158 GetStatTypeStr(StatType::kCorrelationId)), in CreateXEvent()
163 GetStatTypeStr(StatType::kKernelAnnotation)), in CreateXEvent()
168 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kNVTXRange)), in CreateXEvent()
173 *plane->GetOrCreateStatMetadata(GetStatTypeStr(StatType::kContextId)), in CreateXEvent()
199 StatType::kTheoreticalOccupancyPct)), in CreateXEvent()
202 GetStatTypeStr(StatType::kOccupancyMinGridSize)), in CreateXEvent()
205 StatType::kOccupancySuggestedBlockSize)), in CreateXEvent()
208 GetStatTypeStr(StatType::kKernelDetails)), in CreateXEvent()
224 GetStatTypeStr(StatType::kMemcpyDetails)), in CreateXEvent()
[all …]

123