message: Add MetricsConfigBuilder::GetNumPasses() to NvPerfUtility
  This method is used to calculate the expected maximum number of replays and
  enforce an upper-bound on the replay loop.
diff: @@ -324,6 +324,22 @@ namespace nv { namespace perf {
  }
  return true;
  }
  +
  + // Returns the number of replay passes for this metrics config.
  + // Total num passes = numPasses * numNestingLevels
  + size_t GetNumPasses() const
  + {
  + NVPW_RawMetricsConfig_GetNumPasses_V2_Params getNumPassesParams;
  + getNumPassesParams.structSize = sizeof(getNumPassesParams);
  + getNumPassesParams.pPriv = NULL;
  + getNumPassesParams.pRawMetricsConfig = m_pRawMetricsConfig;
  + NVPA_Status nvpaStatus = NVPW_RawMetricsConfig_GetNumPasses_V2(&getNumPassesParams);
  + if (nvpaStatus)
  + {
  + return 0u;
  + }
  + return getNumPassesParams.numPasses;
  + }
  };
  }}
  