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

add a command line option to stop target process while reading its trace #46

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

sj-i
Copy link
Member

@sj-i sj-i commented Aug 10, 2021

php ./php-profiler inspector:daemon -P "regex_to_find_the_target" --template=phpspy_with_opcode --stop-process=on
php ./php-profiler inspector:trace -p <target_pid> --template=phpspy_with_opcode -S=on
  • Equivalent of -S in phpspy
  • Without stopping the target process, it will be difficult to get accurate traces because the state of the target process will change fast while the trace is being read.

@sj-i sj-i merged commit 7f35811 into master Aug 10, 2021
@sj-i sj-i deleted the process_stopper branch August 10, 2021 23:16
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

Successfully merging this pull request may close these issues.

None yet

1 participant