Profiling CEF

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Profiling CEF

Postby pmadr » Tue Oct 13, 2020 5:02 am

I'd like to profile my code in CEF, but tutorial for profiling Chromium doesn't work.
-- https://chromium.googlesource.com/chrom ... g-on-Linux
No chrome-profile file is created.

So I tried callgrind. It works but profiles the complete run only.
I'd like to profile just parts of code. So I added CALLGRIND_START_INSTRUMENTATION, CALLGRIND_STOP_INSTRUMENTATION and CALLGRIND_DUMP_STATS on the wanted places but without any effect. CALLGRIND_TOGGLE_COLLECT doesn't work to.

Thank you for any help.

Note: I started to profile CEF because it seems that there is average 30% slowdown between Chromium versions 63 and 84.
pmadr
Newbie
 
Posts: 8
Joined: Tue Feb 13, 2018 8:04 am

Re: Profiling CEF

Postby magreenblatt » Tue Oct 13, 2020 10:36 am

Most slowdowns in browser behavior are related to web content. I would suggest starting with the DevTools profiling tools, and continuing with the tracing tool if DevTools doesn't provide enough information. Make sure to use a fully optimized official release build for best performance.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 53 guests