Sending messages from non-renderer helper

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.

Sending messages from non-renderer helper

Postby sjames1958 » Fri Sep 17, 2021 6:45 am

For debugging and monitoring purposes we want to be able to log the process info of the helper processes.
For the renderer process I can send a message from the CefRenderProcessHandler implementation to the main process.
I am not finding any way to do this for non-renderer processes.
Is this at all possible?
sjames1958
Mentor
 
Posts: 60
Joined: Sun Jun 22, 2014 7:41 am

Re: Sending messages from non-renderer helper

Postby magreenblatt » Fri Sep 17, 2021 6:59 am

What OS? What kind of process info? Logging it how?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Sending messages from non-renderer helper

Postby sjames1958 » Fri Sep 17, 2021 7:50 am

This is on windows / mac os.
Initially being able to record the process id, more later.
We have our own logging in the browser process, so being able to get the info to there is sufficient.
sjames1958
Mentor
 
Posts: 60
Joined: Sun Jun 22, 2014 7:41 am

Re: Sending messages from non-renderer helper

Postby magreenblatt » Fri Sep 17, 2021 8:06 am

You can execute logic in main() before calling CefExecuteProcess. Access to system APIs may be restricted by the sandbox. You would need to provide your own system for aggregating that information. You should also be able to iterate subprocesses (to get the pid at least) from inside the main process by using system APIs.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests