Open brendadeely opened 8 years ago
Just for the record, I hit the same issue when processing a merged output file generated using nytprofmerge. This was for a test run with about 67 test files called using prove and with env var PERL5OPT=-d:NYTProf=addpid=1
. The test files use Test2::V0
, amongst many other packages, and were called using prove
.
This occurred on both Mac ARM and Ubuntu on WSL2. Both used perl 5.38.2 built using perlbrew with default args.
Editing the nytprofcalls code to keep the zeroes and use a dummy sub name (elided
) got it to process the merged file. However, only the IPC3 and similar top-level calls were in the results, above about eight dummy subs in the flame graph.
I don't have a fix but it all worked when invoking the test files using perl t/test.t
and then running nytprofmerge on the results. This was without PERL5OPT`` being set - the
nytprof.out``` files were manually renamed after each test.
So it would seem to be either a problem with mytprofmerge and/or how Devel::NYTProf is handling some of the packages in use. (I should really test a single prove run without the merge).
I'm getting a panic when I try to parse an nytprof.out file with nytprofcalls (via nytprofhtml). This is the last few lines of output from nytprofcalls -d nytprof.out.1026:
That panic is caused when
$subid eq '0'
. I logged out the$node
that contains$subid
. The first part looks like:On a development environment, the panic occurs but the page I'm test profiling loads completely and I'm able to view the profiling tools as expected. However, on a test environment, the panic seems like it's preventing the page from loading at all.
Thanks in advance for your assistance and let me know if you need any further information.