Commit aff5065c authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

adding kernel name to pass manager stats

parent 52c6d7db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -161,8 +161,8 @@ std::string PassStat::toString(bool shortForm) const {
  std::stringstream ss;
  const std::string separator(40, '*');
  ss << separator << "\n";
  ss << std::string((separator.size() - passName.size()) / 2, ' ') << passName
     << "\n";
  ss << std::string((separator.size() - passName.size() - kernelName.size()) / 2, ' ') << passName
     << " -- " << kernelName << "\n";
  ss << separator << "\n";
  ss << " - Elapsed time: " << wallTimeMs << " [ms]\n";
  ss << " - Number of Gates Before: " << countNumberOfGates(gateCountBefore)
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ namespace internal {
struct PassStat {
  // Name of the pass
  std::string passName;
  std::string kernelName;
  // Count per gate
  std::unordered_map<std::string, int> gateCountBefore;
  std::unordered_map<std::string, int> gateCountAfter;