Closed
Bug 1465924
Opened 6 years ago
Closed 6 years ago
Correctly label the WebExtension process
Categories
(Core :: Gecko Profiler, enhancement, P1)
Core
Gecko Profiler
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: Harald, Assigned: mozbugz)
References
Details
Attachments
(1 file, 1 obsolete file)
about:memory correctly labels it was "WebExtension" (vs "Web Content"). perf.html shows the extension process as "content", which we should improve.
Updated•6 years ago
|
Priority: -- → P1
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
Greg, this patch is untested and (as you can tell by the commit message) the process name stuff is rather messy. I haven't checked all the combinations of values and I'm not sure which ones we really need. Here are the two lists of values: https://searchfox.org/mozilla-central/rev/83a923ef7a3b95a516f240a6810c20664b1e0ac9/xpcom/build/nsXULAppAPI.h#365-380 https://searchfox.org/mozilla-central/rev/83a923ef7a3b95a516f240a6810c20664b1e0ac9/dom/ipc/ContentChild.cpp#2727-2735 I hope you have ideas and opinions on how we should put this information into the profile.
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8982318 [details] Bug 1465924 - Add a new optional property called "processName" to profile.meta which contains "Main Process" in the parent process and a content process name like "WebExtensions" for special content processes, see ContentChild::RecvRemoteType. https://reviewboard.mozilla.org/r/248264/#review254532 ::: tools/profiler/core/platform.cpp:1691 (Diff revision 1) > aWriter.IntProperty("processType", XRE_GetProcessType()); > > + nsAutoCString processName; > + if (XRE_IsParentProcess()) { > + // We're the main process. > + processName.AssignLiteral("Main Process"); Should this be "Parent Process"? I feel like "main" may be a bit overloaded, especially since I have confused the main thread terminology in the past.
Attachment #8982318 -
Flags: review?(gtatum) → review+
Comment 4•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8982318 [details] Bug 1465924 - Add a new optional property called "processName" to profile.meta which contains "Main Process" in the parent process and a content process name like "WebExtensions" for special content processes, see ContentChild::RecvRemoteType. https://reviewboard.mozilla.org/r/248264/#review254532 Thanks, this will be handy to have, especially with the upcoming timeline work.
Comment 5•6 years ago
|
||
I mistakenly didn't read your comment. I'd like to look at this again when I have a bit of time to look through the code.
Flags: needinfo?(gtatum)
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8982318 [details] Bug 1465924 - Add a new optional property called "processName" to profile.meta which contains "Main Process" in the parent process and a content process name like "WebExtensions" for special content processes, see ContentChild::RecvRemoteType. https://reviewboard.mozilla.org/r/248264/#review254544 I missed that this was WIP.
Attachment #8982318 -
Flags: review+
Comment 7•6 years ago
|
||
I had a needinfo on myself for this from awhile back, but I was ignoring it. I think my opinion here would be to capture all the variations of names we can get so that I can see them in context, and see if they make sense. I think the approach should probably be to query the name sources we know, and then have a systematic way to present that to the user where it makes the most sense. As far as implementation details for this, I figure it will look similar to the code that is already here.
Flags: needinfo?(gtatum)
Assignee | ||
Comment 8•6 years ago
|
||
Florian suggested I take this one. Markus, just let me know if you want it back! ;-) I've updated the patch to output "processName" in all threads. (Will attach soon.) Greg, I think ContentChild::GetProcessName() is in fact the best name source, and it's consistent with what about::memory does. Now I'm guessing we'll need to update the data formats first, right?
Assignee: nobody → gsquelart
Assignee | ||
Updated•6 years ago
|
Attachment #8982318 -
Attachment is obsolete: true
Assignee | ||
Comment 9•6 years ago
|
||
This field is in addition to the existing process type fields we already have: - profile.threads[i].processType contains the string for the GeckoProcessType. - profile.threads[i].name contains the ThreadInfo name.
Updated•6 years ago
|
Attachment #9021797 -
Attachment description: Bug 1465924 - Add a new optional property profile.threads[i].processName which contains "Main Process" or the content process's name like "WebExtensions" - r?gregtatum → Bug 1465924 - Add profile.threads[i].processName which contains "Main Process", or the content process's name like "WebExtensions" - r?gregtatum
Comment 10•6 years ago
|
||
Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8355628364af Add profile.threads[i].processName which contains "Main Process", or the content process's name like "WebExtensions" - r=gregtatum
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8355628364af
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•