Skip to content

Commit

Permalink
missed type conversion for metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Oct 11, 2024
1 parent 32ca647 commit 3eaee70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dftracer/writer/chrome_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ void dftracer::ChromeWriter::convert_json(
<< "\":" << std::any_cast<uint16_t>(item.second) << "";
if (i < meta_size - 1) meta_stream << ",";

} else if (item.second.type() == typeid(HashType)) {
meta_stream << "\"" << item.first
<< "\":" << std::any_cast<HashType>(item.second) << "";
if (i < meta_size - 1) meta_stream << ",";

} else if (item.second.type() == typeid(long)) {
meta_stream << "\"" << item.first
<< "\":" << std::any_cast<long>(item.second) << "";
Expand Down

0 comments on commit 3eaee70

Please sign in to comment.