On Friday, March 22, 2013 9:34:37 AM UTC-7, Tim.Bunce wrote: > > On Thu, Mar 21, 2013 at 03:58:13PM -0700, Ryan Moore wrote: > > Is there any way to combine NYTProf output from multiple source files > to give a useful / non-garbage > > output? > > The docs indicate that you might be successful running nytprofmerge > with two runs of the same source, > > but trying to combine multiple sources will probably not do what you > expect. I'm trying to generate a > > combined profile for our tests running under prove (220 files in t/ > and counting), > > Why, specifically? >
Concentrating effort on improving the test setup itself. On any individual test a 1-second improvement might not be the best thing to focus on (or biggest timesink), but if that same one-second improvement is propagated to all 220 tests that's 3+ minutes of improvement for a full test run. > but I'm coming across > > this limitation. Profiling the parent (perl -d:NYTProf prove) only > gives timing for prove itself, and if > > I use "addpid=1" I can't combine the results to get anything > sensible. > > I even tried running with "compress=0" to see if the files were XML > or CSV or some type of structured > > output that I could hack together, but they appear to be a > proprietary binary format. Is there any hope > > for either running one NYTProf across a set of processes, or for > combining separate runs into a usable > > nytprof-merged.out file? > > What's the problem with the current output from nytprofmerge? > It seems to be only reporting a fraction of the time used overall, i.e. for a 30 minute test run it shows a function with 4 seconds of total usage as the top offender, and doesn't seem to include all of the t/* files in the output. > In theory you might be able to hack on nytprofmerge to get something > more useful out. > > Tim. > I'm unfortunately a Perl n00b, but I'll take a look to see if there's anything obvious in nytprofmerge that applies to my use case. I'll also see if I can create a repro case with less than the several-hundred sources involved in my current failures. - Ryan -- -- You've received this message because you are subscribed to the Devel::NYTProf Development User group. Group hosted at: http://groups.google.com/group/develnytprof-dev Project hosted at: http://perl-devel-nytprof.googlecode.com CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf To post, email: [email protected] To unsubscribe, email: [email protected] --- You received this message because you are subscribed to the Google Groups "Devel::NYTProf Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
