On Tue, Apr 13, 2010 at 08:39:59AM -0700, Clint O wrote: > Define "exit cleanly."
Runs all END blocks. > I have the source to the program, so I am able > to modify it. I have not confirmed it, but it appears to use exit 1. > Would a die() cause statistics to not be complete? No. Tim. > I wrote a quick "Hello world" experiment that exits with a non-zero > exit status and I definitely see the footer for nytprof.out in that > case. > > Thanks, > > -Clint > > On Apr 13, 3:09 am, Tim Bunce <[email protected]> wrote: > > On Mon, Apr 12, 2010 at 10:40:26PM -0700, Clint O wrote: > > > So, I tried 3.11 and got further: > > > > > % nytprofhtml > > > Generating report... > > > Reading nytprof.out > > > Error reading file: inflate failed, error -5 ((null)) at end of input > > > file, perhaps the process didn't exit cleanly or the file has been > > > truncated at /home/colsen/lib/site_perl/5.8.8/x86_64-linux/Devel/ > > > NYTProf/Data.pm line 82. > > > > > The nytprof.out file is 290M. > > > > Perhaps the process you were profiling didn't exit cleanly. > > > > For the next release I've added some more details about this error to > > the docs: > > > > --- > > This error message means the file doesn't contain all the expected data. > > That may be because it was truncated (perhaps the filesystem was full) > > or, > > more commonly, because the all the expected data hasn't been written. > > > > NYTProf writes some important data to the data file when I<finishing> > > profiling. > > If you read the file before the profiling has finished you'll get this > > error. > > > > If the process being profiled is still running you'll need to wait > > until it > > exits cleanly (or L</finish_profile> is called explicitly). > > > > If the process being profiled has exited then it's likely that it met > > with a > > sudden and unnatural death that didn't give NYTProf a chance to finish > > the profile. > > If the sudden death was due to a signal then L</sigexit=1> may help. > > --- > > > > Tim. > > > > > -Clint > > > > > On Apr 12, 11:03 am, Clint O <[email protected]> wrote: > > > > Hi: > > > > > > I can't tell if this is a version compatibility problem or not: > > > > > > Generating CSV report... > > > > Reading nytprof.out > > > > File format error: token 41 (')'), chunk 35164, pos 327679 in > > > > compressed input data at > > > > /home/utils/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux/Devel/NYTProf/ > > > > Data.pm > > > > line 82. > > > > > > I couldn't find a way to get a version number out of nytprofhtml to > > > > see whether my data file was compatible. I generated it using the > > > > specific path to Perl (in this case 5.8.8). > > > > > > The data file reads: > > > > > > NYTProf 3 0 > > > > # Perl profile database. Generated by Devel::NYTProf on Mon Apr 12 > > > > 10:08:05 2010 > > > > :basetime=1271092085 > > > > :xs_version=3.01 > > > > :perl_version=5.8.8 > > > > :clock_id=1 > > > > :ticks_per_sec=10000000 > > > > :nv_size=8 > > > > :PL_perldb=784 > > > > > > Thanks, > > > > > > -Clint > > > > > -- > > > 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'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] > > To unsubscribe, reply using "remove me" as the subject. > -- 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]
