CMS 3D CMS Logo

Classes | Functions | Variables
dqmMemoryStats Namespace Reference

Classes

class  HistogramAnalyzer
 

Functions

def displayDirectoryStatistics (stats, args)
 
def kibisize (num, args)
 

Variables

 action
 
 args
 
 default
 
 float
 
 help
 
 HistogramEntry
 
 int
 
 metavar
 
 parser
 
 reader
 
 ref_stats
 
 stats
 
 str
 
 total
 
 type
 

Function Documentation

◆ displayDirectoryStatistics()

def dqmMemoryStats.displayDirectoryStatistics (   stats,
  args 
)

Definition at line 88 of file dqmMemoryStats.py.

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

88 def displayDirectoryStatistics(stats, args):
89  group_stats = stats.group(args.depth, args.count)
90 
91  cutoff, display = args.cutoff * 1024, args.display
92 
93  as_list = [(v, k, ) for (k, v) in group_stats.items()]
94  as_list.sort(reverse=True, key=lambda v_k1: abs(v_k1[0]))
95 
96  if cutoff is not None:
97  as_list = [v_k for v_k in as_list if abs(v_k[0]) > cutoff]
98 
99  if display is not None:
100  as_list = as_list[:display]
101 
102  if args.human:
103  print("*" * 80)
104  print((" DQM level %d folder breakdown " % args.depth).center(80, "*"))
105  if cutoff:
106  print(("* Size cutoff: %s" % kibisize(cutoff,args)).ljust(79) + "*")
107  if display:
108  print(("* Showing top %d entries." % display).ljust(79) + "*")
109  print("*" * 80)
110 
111  for v, k in as_list:
112  if args.human:
113  print(kibisize(v,args).ljust(16, " "), k)
114  else:
115  print(v, k)
116 
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 kibisize(num, args)
def displayDirectoryStatistics(stats, args)

◆ kibisize()

def dqmMemoryStats.kibisize (   num,
  args 
)

Definition at line 77 of file dqmMemoryStats.py.

References str.

Referenced by displayDirectoryStatistics().

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

Variable Documentation

◆ action

dqmMemoryStats.action

Definition at line 123 of file dqmMemoryStats.py.

◆ args

dqmMemoryStats.args

Definition at line 132 of file dqmMemoryStats.py.

◆ default

dqmMemoryStats.default

Definition at line 126 of file dqmMemoryStats.py.

◆ float

dqmMemoryStats.float

Definition at line 127 of file dqmMemoryStats.py.

◆ help

dqmMemoryStats.help

Definition at line 121 of file dqmMemoryStats.py.

◆ HistogramEntry

dqmMemoryStats.HistogramEntry

◆ int

dqmMemoryStats.int

Definition at line 126 of file dqmMemoryStats.py.

◆ metavar

dqmMemoryStats.metavar

Definition at line 127 of file dqmMemoryStats.py.

◆ parser

dqmMemoryStats.parser

Definition at line 120 of file dqmMemoryStats.py.

◆ reader

dqmMemoryStats.reader

Definition at line 135 of file dqmMemoryStats.py.

◆ ref_stats

dqmMemoryStats.ref_stats

Definition at line 142 of file dqmMemoryStats.py.

◆ stats

dqmMemoryStats.stats

Definition at line 134 of file dqmMemoryStats.py.

Referenced by SiPixelPI.adjustStats(), edm::storage::StorageFactory.check(), edm::storage::StorageAccountProxy.close(), CompareAlignments.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(), PlotAlignmentValidation.modifySSHistAndLegend(), edm::storage::StorageFactory.open(), PlotAlignmentValidation.plotSubDetResiduals(), edm::storage::StorageAccountProxy.position(), XrdAdaptor::XrdStatisticsService.postEndJob(), edm::service::StallMonitor.postEndJob(), edm::storage::StorageAccountProxy.prefetch(), CondDBESSource.printStatistics(), edm::storage::StorageAccountProxy.read(), TStorageFactoryFile.ReadBuffer(), TStorageFactoryFile.ReadBufferAsync(), edm::storage::StorageAccountProxy.readv(), TritonClient.reportServerSideStats(), 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().

◆ str

dqmMemoryStats.str

Definition at line 129 of file dqmMemoryStats.py.

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

◆ total

dqmMemoryStats.total

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(), GEMDQMEfficiencyClientBase.checkConsistency(), calo::multifit.compute_decomposition_forwardsubst_with_offsets(), MuonGEMBaseHarvestor.computeEfficiency(), computeSharedTracks(), l1tpf::corrector.correctedPt(), SiStripHitEfficiencyHarvester.countTotalHits(), PhysicsTools::Spline.deriv(), MultipleKinematicConstraint.derivative(), EmDQMPostProcessor.dqmEndJob(), DTCertificationSummary.dqmEndJob(), dumpLutDiff(), JetMETDQMPostProcessor.Efficiency(), EmDQMPostProcessor.Efficiency(), 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(), GEMDQMEfficiencyClientBase.makeEfficiency(), SiStripHitResolFromCalibTree.makeSummaryVsBx(), 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(), FastTimerService.printPathSummaryLine(), SiStripFedCabling.printSummary(), ecaldqm::SelectiveReadoutClient.producePlots(), cms::alpakatools.radixSortImpl(), 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(), LA_Filler_Fitter.subset_probability(), calo::multifit.update_decomposition_forwardsubst_with_offsets(), validateList(), MultipleKinematicConstraint.value(), MultiVertexReconstructor.vertices(), edm::storage::Storage.writev(), and cms::DDCMSDetElementCreator.~DDCMSDetElementCreator().

◆ type

dqmMemoryStats.type

Definition at line 126 of file dqmMemoryStats.py.