Discussion:
[chromium-discuss] Monitoring CPU and Memory
Ant Kutschera
2018-10-09 15:32:48 UTC
Permalink
Hi

I'm trying to write a little program to monitor CPU and Memory usage of the
"renderer process" which handles our intranet application. I've tried
making an extension and using the processes API. Something like this would
be ideal, because I can find the tab using the
title: https://developer.chrome.com/extensions/processes#method-getProcessIdForTab

Unfontunately that API is only available on the dev channel which isn't an
option for us.

I've got a dotnet application running which can determine all tab titles.
It is based on https://github.com/jasonfah/chrome-tab-titles. Unfortunately
it appears as though the tab belongs to a window whose handle belongs to
the main chrome process, rather than a renderer process. E.g. chromes main
process is number 80, it starts a renderer process for my site: number
25004. The tab with the title "Our Intranet Application" comes from a
window with a handle being held by process 80, rather than 25004.

*So is it possible to programatically determine which child-process is
being used to do all the work for the tab displaying our site?*

Thanks,
Ant
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
PhistucK
2018-10-10 06:33:34 UTC
Permalink
I am not sure if there is a way.

Regarding the aforementioned extension API, it requires either a dev
channel installation, or having experimental extension APIs enabled
- chrome://flags/#extension-apis - which might be a lower barrier for your
use case.

☆*PhistucK*
Post by Ant Kutschera
Hi
I'm trying to write a little program to monitor CPU and Memory usage of
the "renderer process" which handles our intranet application. I've tried
making an extension and using the processes API. Something like this would
https://developer.chrome.com/extensions/processes#method-getProcessIdForTab
Unfontunately that API is only available on the dev channel which isn't an
option for us.
I've got a dotnet application running which can determine all tab titles.
It is based on https://github.com/jasonfah/chrome-tab-titles.
Unfortunately it appears as though the tab belongs to a window whose handle
belongs to the main chrome process, rather than a renderer process. E.g.
chromes main process is number 80, it starts a renderer process for my
site: number 25004. The tab with the title "Our Intranet Application" comes
from a window with a handle being held by process 80, rather than 25004.
*So is it possible to programatically determine which child-process is
being used to do all the work for the tab displaying our site?*
Thanks,
Ant
--
--
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups
"Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Ant Kutschera
2018-10-10 06:36:39 UTC
Permalink
Thanks Phistuck, unforunately when the APIs are enabled, there is a popup
which warns the user about them with a disable button. That wouldn't be
acceptable to our users.
Post by PhistucK
I am not sure if there is a way.
Regarding the aforementioned extension API, it requires either a dev
channel installation, or having experimental extension APIs enabled
- chrome://flags/#extension-apis - which might be a lower barrier for your
use case.
☆*PhistucK*
Post by Ant Kutschera
Hi
I'm trying to write a little program to monitor CPU and Memory usage of
the "renderer process" which handles our intranet application. I've tried
making an extension and using the processes API. Something like this would
https://developer.chrome.com/extensions/processes#method-getProcessIdForTab
Unfontunately that API is only available on the dev channel which isn't
an option for us.
I've got a dotnet application running which can determine all tab titles.
It is based on https://github.com/jasonfah/chrome-tab-titles.
Unfortunately it appears as though the tab belongs to a window whose handle
belongs to the main chrome process, rather than a renderer process. E.g.
chromes main process is number 80, it starts a renderer process for my
site: number 25004. The tab with the title "Our Intranet Application" comes
from a window with a handle being held by process 80, rather than 25004.
*So is it possible to programatically determine which child-process is
being used to do all the work for the tab displaying our site?*
Thanks,
Ant
--
--
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups
"Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Loading...