Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid token error with nytprofcg #118

Open
LordAro opened this issue Mar 28, 2018 · 1 comment
Open

Invalid token error with nytprofcg #118

LordAro opened this issue Mar 28, 2018 · 1 comment

Comments

@LordAro
Copy link

LordAro commented Mar 28, 2018

So I was trying out NYTProf with an existing codebase. Unfortunately, it broke.

Profile format error: token 28 (''), chunk 173852, pos 1917430 (see TROUBLESHOOTING in docs) at <snip>/Devel/NYTProf/Data.pm line 87.

Digging through the codebase shows that the error is actually coming from

croak("Profile format error: token %d ('%c'), chunk %lu, pos %ld%s (see TROUBLESHOOTING in docs)",

The codebase is big enough that coming up with a more minimal example would be next to impossible, but is there anything I can do to debug it further?

By the looks of things, the content of nytprof.out around byte 1917430 (0x1d41f6) (assuming that's where it's referring to) is (by way of piping it through xxd):

001d41e0: 742f 7274 746c 6900 0000 002c 4000 0000  t/rttli....,@...
001d41f0: 0000 002c 4027 1c72 7474 6c69 623a 3a50  ...,@'.rttlib::P
001d4200: 6c61 7466 6f72 6d3a 3a69 735f 7769 6e64  latform::is_wind
001d4210: 6f77 732b 3f2a 808b 2d2b 0381 2c83 8c2b  ows+?*..-+..,..+
001d4220: 0581 2c83 8d2b 0281 2c83 8f2b 0581 2c83  ..,..+..,..+..,.
001d4230: 943c 0700 0000 0000 2078 4000 0000 0000  .<...... x@.....

That's about as much as I can show you, I'm afraid

@jkeenan
Copy link
Collaborator

jkeenan commented Apr 6, 2021

Do you get any better results with the latest version (6.07) of Devel-NYTProf, released this morning (https://metacpan.org/pod/Devel::NYTProf)?

Thank you very much.
Jim Keenan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants