Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bikeshed the source name for per-process #267

Open
kenchris opened this issue Apr 24, 2024 · 2 comments
Open

Bikeshed the source name for per-process #267

kenchris opened this issue Apr 24, 2024 · 2 comments

Comments

@kenchris
Copy link
Contributor

kenchris commented Apr 24, 2024

The per-process support will be exposed as a new source type, but it's a bit hard finding a good name :-)

Some current ideas:

  • "cpu-self"
  • "cpu-same-origin"
  • "cpu-same-site"

"self" is probably not so descriptive, as as processes are often shared across multiple instances of the same site/origin, something like "same-origin" or "same-site" might make more sense. Cookies seem to use the "same site" nomenclature.

@Elchi3 maybe you have some ideas given your work on MDN.

@Elchi3
Copy link

Elchi3 commented Apr 25, 2024

I have no concrete naming proposal but I think it would help to understand the scopes here. Would the following documentation be correct? ("cpu-thread" is my invention for illustration).

  • "thermals" represents the global thermal state of the entire system.
  • "cpu" represents the average pressure of the central processing unit (CPU) across all its cores. This state can be affected by other apps and sites than the observing site.
  • "cpu-same-origin" represents the CPU pressure for all contexts/threads the site is using (this includes the main thread for the window and same origin iframes, and workers).
  • "cpu-thread" represents the CPU pressure for an observed thread, for example a specific worker within a web application.

@kenchris
Copy link
Contributor Author

I am a bit worried about the word thread as it is not really used in specs (to my knowledge) and APIs, though users talk about main thread. I guess it would be the JavaScript realm/context

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

No branches or pull requests

2 participants