Fix the issue that profiler raises UTF8 issue when serializing profile result.
PiperOrigin-RevId: 241831776
This commit is contained in:
parent
34fc260230
commit
4c254c42cb
@ -600,10 +600,8 @@ class CudaEventCollector {
|
|||||||
auto elapsed_us = GetElasedTimeUs(record.start_event, record.stop_event);
|
auto elapsed_us = GetElasedTimeUs(record.start_event, record.stop_event);
|
||||||
|
|
||||||
auto stats = absl::make_unique<NodeExecStats>();
|
auto stats = absl::make_unique<NodeExecStats>();
|
||||||
std::string node_name = record.kernel_name;
|
std::string node_name =
|
||||||
if (record.annotation) {
|
record.annotation ? *record.annotation : record.kernel_name;
|
||||||
node_name = absl::StrCat(*record.annotation, "::", node_name);
|
|
||||||
}
|
|
||||||
stats->set_node_name(node_name);
|
stats->set_node_name(node_name);
|
||||||
// TODO(csigg): Report grid size?
|
// TODO(csigg): Report grid size?
|
||||||
std::string node_label;
|
std::string node_label;
|
||||||
|
Loading…
Reference in New Issue
Block a user