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

the performance of -f option #39

Open
kaizi-8lab opened this issue Apr 8, 2017 · 1 comment
Open

the performance of -f option #39

kaizi-8lab opened this issue Apr 8, 2017 · 1 comment

Comments

@kaizi-8lab
Copy link

hi,
i want to know the program execution process ,when i use the -f option, the process will be very slowly。
for example, i excute command "apt-get install gedit" , it takes about 5 seconds. if i use " python2.7 ./strace.py -f apt-get install gedit",it takes 2.5 min, the time is unacceptable.
i alse use linux strace, excute cmd "strace -f apt-get install gedit", it taks 20 second.
do you know the reason of being slowly?

@vstinner
Copy link
Owner

vstinner commented Apr 8, 2017

python-ptrace is implemented in Python, it's slower than strace which is written in C.

python-ptrace was never optimized, maybe there are some obvious non-efficient code. There is also a cptrace module which avoids the slow ctypes.

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