5

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.

MHogge
  • 5,408
  • 15
  • 61
  • 104

1 Answers1

3

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

Shanker
  • 864
  • 6
  • 24