CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
dqmMemoryStats Namespace Reference

Classes

class  HistogramAnalyzer
 

Functions

def displayDirectoryStatistics
 
def kibisize
 

Variables

tuple args = parser.parse_args()
 
tuple HistogramEntry = namedtuple('HistogramEntry', ['type', 'bin_size', 'bin_count', 'extra', 'total_bytes'])
 
tuple parser = argparse.ArgumentParser()
 
tuple reader = DQMReader(args.input)
 
tuple ref_stats = HistogramAnalyzer()
 
tuple stats = HistogramAnalyzer()
 
tuple total = stats.group(0, args.count)
 

Function Documentation

def dqmMemoryStats.displayDirectoryStatistics (   stats,
  args 
)

Definition at line 88 of file dqmMemoryStats.py.

References funct.abs(), kibisize(), and print().

88 
89 def displayDirectoryStatistics(stats, args):
90  group_stats = stats.group(args.depth, args.count)
91 
92  cutoff, display = args.cutoff * 1024, args.display
93 
94  as_list = [(v, k, ) for (k, v) in group_stats.items()]
95  as_list.sort(reverse=True, key=lambda v_k1: abs(v_k1[0]))
96 
97  if cutoff is not None:
98  as_list = [v_k for v_k in as_list if abs(v_k[0]) > cutoff]
99 
100  if display is not None:
101  as_list = as_list[:display]
102 
103  if args.human:
104  print("*" * 80)
105  print((" DQM level %d folder breakdown " % args.depth).center(80, "*"))
106  if cutoff:
107  print(("* Size cutoff: %s" % kibisize(cutoff,args)).ljust(79) + "*")
108  if display:
109  print(("* Showing top %d entries." % display).ljust(79) + "*")
110  print("*" * 80)
111 
112  for v, k in as_list:
113  if args.human:
114  print(kibisize(v,args).ljust(16, " "), k)
115  else:
116  print(v, k)
def displayDirectoryStatistics
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def dqmMemoryStats.kibisize (   num,
  args 
)

Definition at line 77 of file dqmMemoryStats.py.

References str.

Referenced by displayDirectoryStatistics().

77 
78 def kibisize(num,args):
79  if args.count:
80  return str(num)
81  pStr="%."+str(args.precision)+"f %s"
82  for prefix in ['KiB','MiB','GiB']:
83  num /= 1024.0
84 
85  if num < 1024.0 or args.units == prefix:
86  return pStr % (num, prefix)
87  return pStr % (num, prefix)
#define str(s)

Variable Documentation

tuple dqmMemoryStats.args = parser.parse_args()

Definition at line 132 of file dqmMemoryStats.py.

tuple dqmMemoryStats.HistogramEntry = namedtuple('HistogramEntry', ['type', 'bin_size', 'bin_count', 'extra', 'total_bytes'])

Definition at line 9 of file dqmMemoryStats.py.

Referenced by dqmMemoryStats.HistogramAnalyzer.analyze(), and dqmMemoryStats.HistogramAnalyzer.difference().

tuple dqmMemoryStats.parser = argparse.ArgumentParser()

Definition at line 120 of file dqmMemoryStats.py.

tuple dqmMemoryStats.reader = DQMReader(args.input)

Definition at line 135 of file dqmMemoryStats.py.

tuple dqmMemoryStats.ref_stats = HistogramAnalyzer()

Definition at line 142 of file dqmMemoryStats.py.

tuple dqmMemoryStats.stats = HistogramAnalyzer()

Definition at line 134 of file dqmMemoryStats.py.

Referenced by edm::storage::StorageFactory.check(), edm::storage::StorageAccountProxy.close(), ColourStatsBoxes(), XrdAdaptor::XrdStatisticsService.condorUpdate(), PFClient.createProfilePlots(), EcalZmassClient.dqmEndJob(), TritonClient.evaluate(), TrackerOfflineValidationSummary.fillTree(), TrackerOfflineValidation.fillTree(), edm::storage::StatisticsSenderService::FileStatistics.fillUDP(), edm::storage::StorageAccountProxy.flush(), XrdAdaptor::XrdSiteStatisticsInformation.getStatisticsForSite(), TStorageFactoryFile.Initialize(), edm::storage::StorageFactory.open(), edm::storage::StorageAccountProxy.position(), XrdAdaptor::XrdStatisticsService.postEndJob(), edm::service::StallMonitor.postEndJob(), edm::storage::StorageAccountProxy.prefetch(), edm::storage::StorageAccountProxy.read(), TStorageFactoryFile.ReadBuffer(), TStorageFactoryFile.ReadBufferAsync(), edm::storage::StorageAccountProxy.readv(), edm::storage::StorageAccountProxy.resize(), XrdAdaptor::ClientRequest.setStatistics(), edm::storage::StorageFactory.stagein(), edm::storage::StorageAccountProxy.StorageAccountProxy(), TStorageFactoryFile.SysClose(), TStorageFactoryFile.SysOpen(), TStorageFactoryFile.SysSeek(), TStorageFactoryFile.SysStat(), TStorageFactoryFile.SysSync(), TStorageFactoryFile.TStorageFactoryFile(), edm::storage::StatisticsSenderService::FileStatistics.update(), edm::service::CondorStatusService.updateImpl(), edm::storage::StorageAccountProxy.write(), TStorageFactoryFile.WriteBuffer(), edm::storage::StorageAccountProxy.writev(), and edm::storage::StorageAccountProxy.~StorageAccountProxy().

tuple dqmMemoryStats.total = stats.group(0, args.count)

Definition at line 152 of file dqmMemoryStats.py.

Referenced by reco::HcalNoiseRBX.allChargeHighest2TS(), reco::HcalNoiseRBX.allChargeHighest3TS(), reco::HcalNoiseRBX.allChargeTotal(), reco::HcalNoiseHPD.big5ChargeHighest2TS(), reco::HcalNoiseHPD.big5ChargeHighest3TS(), reco::HcalNoiseHPD.big5ChargeTotal(), reco::HcalNoiseHPD.bigChargeHighest2TS(), reco::HcalNoiseHPD.bigChargeHighest3TS(), reco::HcalNoiseHPD.bigChargeTotal(), MuonGEMBaseHarvestor.bookEff1D(), MuonGEMBaseHarvestor.bookEff2D(), EmDQM.bookHistograms(), EcalMixingModuleValidation.bunchSumTest(), reco::HcalNoiseHPD.caloTowerEmE(), reco::HcalNoiseHPD.caloTowerHadE(), reco::HcalNoiseHPD.caloTowerTotalE(), calo::multifit.compute_decomposition_forwardsubst_with_offsets(), computeSharedTracks(), l1tpf::corrector.correctedPt(), PhysicsTools::Spline.deriv(), MultipleKinematicConstraint.derivative(), CSCPairResidualsConstraint.dphidzFromTrack(), EmDQMPostProcessor.dqmEndJob(), DTCertificationSummary.dqmEndJob(), dumpLutDiff(), RctRawToDigi.endJob(), GctRawToDigi.endJob(), PixelLumiDQM.endLuminosityBlock(), reco::tau.eratio(), PhysicsTools::Spline.eval(), FastTimerService::PlotsPerElement.fill_fraction(), HLXMonitor.FillHistoHFCompare(), calo::multifit.fnnls(), get3x3(), get5x5(), MuonShowerInformationFiller.getCompatibleDets(), CTPPSDiamondDQMSource.globalEndLuminosityBlock(), CmsShowNavigator.goTo(), PhysicsTools::Spline.integral(), SiStripHitEffFromCalibTree.makeSummaryVsBx(), reco::HcalNoiseRBX.numRecHits(), reco::HcalNoiseRBX.numRecHitsFailR45(), FastTimerService::ResourcesPerModule.operator+=(), FastTimerService::ResourcesPerPath.operator+=(), FastTimerService::ResourcesPerProcess.operator+=(), FastTimerService::ResourcesPerJob.operator+=(), edm::storage::StorageAccountProxy.prefetch(), SiStripFecCabling.print(), SiStripDetCabling.print(), SiStripRegionCabling.print(), SiStripFedCabling.printDebug(), SiStripFedCabling.printSummary(), ecaldqm::SelectiveReadoutClient.producePlots(), TStorageFactoryFile.ReadBuffers(), edm::storage::DavixFile.readv(), edm::storage::DCacheFile.readv(), edm::storage::Storage.readv(), reco::HcalNoiseRBX.recHitEnergy(), reco::HcalNoiseHPD.recHitEnergy(), reco::HcalNoiseRBX.recHitEnergyFailR45(), reco::HcalNoiseHPD.recHitEnergyFailR45(), FastTimerService::ResourcesPerModule.reset(), FastTimerService::ResourcesPerPath.reset(), FastTimerService::ResourcesPerProcess.reset(), FastTimerService::ResourcesPerJob.reset(), calo::multifit.update_decomposition_forwardsubst_with_offsets(), validateList(), MultipleKinematicConstraint.value(), MultiVertexReconstructor.vertices(), edm::storage::Storage.writev(), and cms::DDCMSDetElementCreator.~DDCMSDetElementCreator().