|
[Rivet] stopwatch feature for timing tests?Andy Buckley andy.buckley at cern.chTue Jun 28 16:25:44 BST 2016
On 28/06/16 16:18, Raghav Kunnawalkam Elayavalli wrote: > Hi Rivet experts, > > I would like to optimize an analysis of mine for which i need the help of something like the TStopwatch feature. I assume i can use that from root itself, pointing to the rootcxxflags during compilation, but i wanted to know if Rivet has something like that. I cant find a timer class in the documentation. but in know its there since you printout the time elapsed. I guess it's ok to link against ROOT like you say. With the usual caveats about accuracy of such timing tests. The timing that we write out is just in the script layer, using Python's datetime module. It gives overall timing rather than per-component. At a simpler level you could just run it through the "time" shell command, but I guess you want to do some internal profiling? Maybe worth looking into valgrind, gprof, or perf for that. Andy -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |