[root] / trunk / tree / treeplayer / src / TTreePerfStats.cxx Repository:
ViewVC logotype

Log of /trunk/tree/treeplayer/src/TTreePerfStats.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 19940 byte(s)
Diff to previous 41323
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 41323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 11 09:22:02 2011 UTC (3 years, 3 months ago) by pcanal
File length: 19790 byte(s)
Diff to previous 38833
Remove unused definition (see Coverity 32155 Parse warning, declared but not referenced)

Revision 38833 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 18:37:43 2011 UTC (3 years, 9 months ago) by pcanal
File length: 19826 byte(s)
Diff to previous 38055
From Elvin Sindrilaru: prevent the TTreePerfStats from recording information about an unrelated file

Revision 38055 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 11 22:06:25 2011 UTC (3 years, 11 months ago) by pcanal
File length: 19762 byte(s)
Diff to previous 36345
Introduce TVirtualPerfStats::FileUnzipEvent to be able to keep track of the cost of unzipping and use this in TTreePerfStas and TBakset ... This give a good picture of where the time in unzip or in unstreaming

Revision 36345 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 13 20:54:09 2010 UTC (4 years, 3 months ago) by brun
File length: 18480 byte(s)
Diff to previous 33815
Fix a problem in Finish and Paint in case one reads a very small fraction of the file.
see: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=11372

Revision 33815 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 12:54:01 2010 UTC (4 years, 7 months ago) by brun
File length: 18451 byte(s)
Diff to previous 33813
Improve comments.

Revision 33813 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 12:30:00 2010 UTC (4 years, 7 months ago) by brun
File length: 18431 byte(s)
Diff to previous 33146
Improce comments

Revision 33146 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 16:44:24 2010 UTC (4 years, 9 months ago) by pcanal
File length: 17926 byte(s)
Diff to previous 31424
Make sure that gPerfStats is properly updated if the TTreePerfStats is deleted!

Revision 31424 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 25 16:11:48 2009 UTC (5 years, 1 month ago) by brun
File length: 17869 byte(s)
Diff to previous 31417
Fix warning about unused argument

Revision 31417 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 25 14:07:51 2009 UTC (5 years, 1 month ago) by brun
File length: 17864 byte(s)
Diff to previous 31026
Implement suggestions from Axel:
 -Browse method
 -improved layout

Revision 31026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 8 16:48:38 2009 UTC (5 years, 2 months ago) by brun
File length: 17730 byte(s)
Diff to previous 31024
Fix coding conventions.

Revision 31024 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 8 16:33:36 2009 UTC (5 years, 2 months ago) by brun
File length: 17726 byte(s)
Diff to previous 31023
Display the RAW IO graph too

Revision 31023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 7 16:57:50 2009 UTC (5 years, 2 months ago) by brun
File length: 17364 byte(s)
Diff to previous 31020
Corect the time axis to correspond to fRealTime

Revision 31020 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 6 20:40:49 2009 UTC (5 years, 2 months ago) by brun
File length: 17242 byte(s)
Diff to previous 31019
Change fMachine to fHostInfo.
Fix destructor and SavePrimitive to delete and generate code for fHostInfo

Revision 31019 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 6 20:14:41 2009 UTC (5 years, 2 months ago) by pcanal
File length: 17129 byte(s)
Diff to previous 31018
avoid compiler warning

Revision 31018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 6 19:03:08 2009 UTC (5 years, 2 months ago) by pcanal
File length: 17078 byte(s)
Diff to previous 31015
Allow to call Print without having to first call Draw (or Finish)

Revision 31015 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 6 17:05:52 2009 UTC (5 years, 2 months ago) by brun
File length: 17061 byte(s)
Diff to previous 31010
Small correction when computing the scale of the real time axis.

Revision 31010 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 6 15:21:44 2009 UTC (5 years, 2 months ago) by brun
File length: 17085 byte(s)
Diff to previous 30983
Add new members to keep the details (machine, OS, ROOT version, date/time of the run)
on which the analysis is done with TTreePerfStats.
When drawing the object on a different machine, the original identification is preserved.

Revision 30983 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 11:12:22 2009 UTC (5 years, 2 months ago) by brun
File length: 16303 byte(s)
Diff to previous 30982
More cosmetics and store number of bytes read in Kbytes instead of bytes
in fGraphIO such that the error bar is invisible.

Revision 30982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 10:34:49 2009 UTC (5 years, 2 months ago) by brun
File length: 16325 byte(s)
Diff to previous 30979
Some protections and cosmetics

Revision 30979 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 09:06:35 2009 UTC (5 years, 2 months ago) by brun
File length: 16119 byte(s)
Diff to previous 30973
New improvements and changes in the graphics format.
The Draw or Print functions print the following information:
//   TreeCache = TTree cache size in MBytes
//   N leaves  = Number of leaves in the TTree
//   ReadTotal = Total number of zipped bytes read
//   ReadUnZip = Total number of unzipped bytes read
//   ReadCalls = Total number of disk reads
//   ReadSize  = Average read size in KBytes
//   Readahead = Readahead size in KBytes
//   Readextra = Readahead overhead in percent
//   Real Time = Real Time in seconds
//   CPU  Time = CPU Time in seconds
//   Disk Time = Real Time spent in pure raw disk IO
//   Disk IO   = Raw disk IO speed in MBytes/second
//   ReadUZRT  = Unzipped MBytes per RT second
//   ReadUZCP  = Unipped MBytes per CP second
//   ReadRT    = Zipped MBytes per RT second
//   ReadCP    = Zipped MBytes per CP second

Revision 30973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 4 20:19:15 2009 UTC (5 years, 2 months ago) by brun
File length: 13883 byte(s)
Diff to previous 30945
Extend functionality of TTreePerfStats.
In addition to the IO graph, a time graph is superimposed. Thanks to
this graph it is easy to see if the real time is linear with the IO.

I also added the following documentation for this class:

// The function FileReadEvent is called from TFile::ReadBuffer.
// For each call the following information is stored in fGraphIO
//     - x[i]  = Tree entry number
//     - y[i]  = file position
//     - ey[i] = 0.5*number of bytes read
// For each call the following information is stored in fGraphTime
//     - x[i]  = Tree entry number
//     - y[i]  = Time now
//     - ey[i] = 0.5*readtime, eg timenow - start
// The TTreePerfStats object can be saved in a ROOT file in such a way that
// its inspection can be done outside the job that generated it.
//
//       Example of use                                                 
// {
//   TFile *f = TFile::Open("RelValMinBias-GEN-SIM-RECO.root");
//   T = (TTree*)f->Get("Events");
//   Long64_t nentries = T->GetEntries();
//   T->SetCacheSize(10000000);
//   T->SetCacheEntryRange(0,nentries);
//   T->AddBranchToCache("*");
//
//   TTreePerfStats *ps= new TTreePerfStats("ioperf",T);
//
//   for (Int_t i=0;i<nentries;i++) {
//      T->GetEntry(i);
//   }
//   ps->SaveAs("cmsperf.root");
// }
//
// then, in a root interactive session, one can do:
//    root > TFile f("cmsperf.root");
//    root > ioperf->Draw();
//    root > ioperf->Print();

Revision 30945 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 2 15:32:02 2009 UTC (5 years, 2 months ago) by brun
File length: 9966 byte(s)
Diff to previous 30935
TTreePerfStats can now be made persistent, ie the result of a run can be saved
to a file with
   TTreePerStats::SaveAs(filename)
and inspected in a new ROOT session with
   TFile f("filename")
   ioperf.Draw()

TTreePerfStats::SavePrimitive is also implemented such that the C++ code
from a canvas holding a TTreePerfStats object may be generated.

Revision 30935 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 30 21:10:31 2009 UTC (5 years, 2 months ago) by rdm
File length: 4482 byte(s)
Diff to previous 30927
corrections in comments.

Revision 30927 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 30 13:15:34 2009 UTC (5 years, 2 months ago) by brun
File length: 4458 byte(s)
Diff to previous 30925
Add a grid to the performance graph

Revision 30925 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Oct 30 12:49:51 2009 UTC (5 years, 2 months ago) by brun
File length: 4391 byte(s)
Add a new class to monitor the TTree I/O performance.
An example of use is given below:

void testcms() {
   gSystem->Load("cmsl/cmsl"); //generated with MakeProject with corrections
   TFile *f = TFile::Open("RelValMinBias-GEN-SIM-RECO.root");
   T = (TTree*)f->Get("Events");
   Long64_t nentries = T->GetEntries();
   T->SetCacheSize(15000000);
   T->SetCacheEntryRange(0,nentries);
   T->AddBranchToCache("*");
   
   TTreePerfStats *ps= new TTreePerfStats(T);
   
   for (Int_t i=0;i<nentries;i++) {
      if (i%100 == 0) printf("i=%d\n",i);
      T->GetEntry(i);
   }
   ps->Draw();
   ps->Print();
}

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9