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

Generate unrecognized profile format #83

Open
xxm404 opened this issue Oct 13, 2022 · 4 comments
Open

Generate unrecognized profile format #83

xxm404 opened this issue Oct 13, 2022 · 4 comments
Labels

Comments

@xxm404
Copy link

xxm404 commented Oct 13, 2022

Description

The following code:

<?php
memprof_enable();
memprof_dump_pprof(fopen("profile.heap", "w"));

pprof --text profile.heap 

Resulted in this output:

profile.heap: parsing profile: unrecognized profile format
failed to fetch any source profiles

But I expected this output instead:

php-memprof Version

php-memprof 3.0.2

PHP Version

PHP 7.2.26

Operating System

Ubuntu 18.04.4 LTS

@xxm404 xxm404 added the bug label Oct 13, 2022
@xxm404
Copy link
Author

xxm404 commented Nov 11, 2022

@arnaud-lb Hi how to solve the above problem.

@stracker-phil
Copy link

I get the same results. @Arnaud-B I'm happy to investigate and ideally also provide a PR if you can point me to the pprof file format details or link to a working pprof heap file.

@Ishan-Batra
Copy link

Got same results as above , can you please help us @arnaud-lb

@arnaud-lb
Copy link
Owner

I confirm that the generated profiles do not work with the standalone version of pprof installable from https://github.com/google/pprof.

It does work with the gperftools version of pprof (at least with gperftools 2.9 installed with apt install google-perftools on Ubuntu).

For now I would suggest to use the gperftools version.

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

No branches or pull requests

4 participants