Can't use chrome dev tools profiler with ios-webkitdebug-proxy #52

Open
earlyster opened this Issue Feb 26, 2014 · 12 comments

6 participants

@earlyster

I was not able to get chrome dev tools profiler working when using Ipad device or using simulator. I couldn't find any issue related to profiler working or not working. Just want to make sure that this feature is not supposed to work since the safari debug tools don't have a profiler.

When I use profiler I see blank screen and see JS error:

Request with id = 23 failed. Method not found(-32601): 'Profiler.getProfile' wasn't found.

All the profile windows are empty

image

@ponychicken

I couldn't get the chrome profiler to work either. (For me it was 'Profiler.setSamplingInterval' wasn't found);

Safari has some basic profiling tools under Timelines > Profiles

@jordwalke

What would it take to get this working?

@kcbanner

Any updates on this?

@artygus

@kcbanner @jordwalke I'm currently working on a compatibility layer between chrome and safari dev tools protocols, I think I'll publish the first working version in a month or so

@jordwalke

@artygus Is that a complete reimplementation of the ios-webkit-debug-proxy, or just fixing the issues? I'd really like to hear more about what you're doing.

@auchenberg

@artygus @jordwalke +1 listening in here.

@artygus

@jordwalke nope, iwdp does the only one thing, it proxies dev tools messages from iOS browser. Chrome and Safari have diverged a little bit with the debugger protocol at some point, so technically it is possible to write another proxy that translates things from the old protocol to what Chrome understands now. You can get the idea here #86 (comment)

@jordwalke

@artygus Thanks. Well, I assure you that anyone using React Native would be very excited to hear what your findings are. Please keep us posted.

@artygus

@kcbanner @jordwalke @auchenberg hey guys, as I don't have enough free time to finish work on compatibility proxy right now, so I decided to make at least a little progress on the issue extracting webkit webinspector diectly, maybe you will find it useful https://github.com/artygus/webkit-webinspector

@artygus

Regarding the Profiler tab I'm afraid it's not possible at all, Profiler domain was completely removed with protocol v9, and only CPU profiling was possible in previous versions

UPD: v9 is upcoming protocol, so CPU profiling will be here for a while. I looked closer into syntax of CPU profiling results of webkit and chrome devtools protocols and it looks to me that it's still possible to handle

@auchenberg

@artygus Thanks for the update, much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment