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

profiler.sh file is missing #781

Closed
praveennish opened this issue Jul 26, 2023 · 4 comments
Closed

profiler.sh file is missing #781

praveennish opened this issue Jul 26, 2023 · 4 comments

Comments

@praveennish
Copy link

I have used async profiler earlier with profiler.sh for flamegraph. This file is missing but README file contains documentation for profiler.sh. This is confusing

@AsherAroussi
Copy link

Download async-profiler-2.9-linux-x64

@praveennish
Copy link
Author

Thanks! I have downloaded the aforesaid package. while I ran profiler.sh command
./profiler.sh -d 60 -f /tmp/flamegraph.html PID
it fails with error message
"Failed to inject profiler into PID"

@apangin
Copy link
Member

apangin commented Jul 26, 2023

The README refers to the latest release 2.9, which has profiler.sh as a launcher.
In the current version being developed, profiler.sh has been replaced with the binary launcher asprof - see #724 for details. In most cases, profiler commands will work with asprof just the same way as they did with profiler.sh.

As to "Failed to inject profiler" message, it is described in the Troubleshooting section in README. You can also find a number of previous discussions here among github issues. If you profile a containerized application, make sure the container can access profiler library at the same path as on the host. On Alpine Linux, you may also need to install libstdc++ package.

@praveennish
Copy link
Author

Thanks @apangin ! I found #78
copying async profiler to user(who is running this process) home directory fixed the issue!

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

3 participants