Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running systrace gives "preexec_fn is not supported on Windows" error

I'm trying to use Android's Systrace feature as described here and here but when I run the command line described in the above links, it gives me this error :

File "C:\Python27\lib\subprocess.py", line 664, in __init__
raise ValueError("preexec_fn is not supported on Windows "
ValueError: preexec_fn is not supported on Windows platforms

The command line described above is :

python systrace.py --time=10 -o mynewtrace.html sched gfx view wm

I'm not a python dev so I don't have any clue about it and google doesn't help me a lot, any idea?

-- I'm running on a windows 10 computer.

like image 918
MHogge Avatar asked Oct 17 '22 21:10

MHogge


1 Answers

Even I faced same issue. Replace the catapult folder in your SDK's platform-tools/systrace location with the catapult folder downloaded from below link.

https://github.com/catapult-project/catapult

like image 112
Shanker Avatar answered Oct 20 '22 11:10

Shanker