Closed Bug 797904 Opened 12 years ago Closed 12 years ago

Include the app name in the memory reports dump

Categories

(Toolkit :: about:memory, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)

References

Details

Attachments

(1 file, 1 obsolete file)

Patch in a moment.
Attached patch Patch, v1 (obsolete) — Splinter Review
Attachment #668023 - Flags: review?(n.nethercote)
Attachment #668023 - Flags: review?(jones.chris.g)
Assignee: nobody → justin.lebar+bug
Before you ask:

> +    mozilla::ipc::SetThisProcessName(NS_LossyConvertUTF16toASCII(aName).get());

I fully-qualified the function name here not because it needs to be disambiguated for the compiler (it's ContentChild::SetProcessName versus mozilla::ipc::SetThisProcessName) but because I wanted to disambiguate for humans.
Comment on attachment 668023 [details] [diff] [review]
Patch, v1

Actually, slight improvement coming to the nsMemoryReporterManager bits.
Attachment #668023 - Flags: review?(n.nethercote)
Attached patch Patch, v2Splinter Review
This explicitly calls out the main process, which v1 didn't do.  No changes compared to v1 to anything other than nsMemoryReporterManager.cpp.
Attachment #668023 - Attachment is obsolete: true
Attachment #668023 - Flags: review?(jones.chris.g)
Attachment #668062 - Flags: review?(n.nethercote)
Attachment #668062 - Flags: review?(jones.chris.g)
Attachment #668062 - Flags: review?(jones.chris.g) → review+
Comment on attachment 668062 [details] [diff] [review]
Patch, v2

Review of attachment 668062 [details] [diff] [review]:
-----------------------------------------------------------------

Seems reasonable, but I'm having trouble imagining how this affects the output.  It looks like on desktop nothing will change, is that right?  What difference does it make on B2G?
(In reply to Nicholas Nethercote [:njn] from comment #5)
> Seems reasonable, but I'm having trouble imagining how this affects the
> output.  It looks like on desktop nothing will change, is that right?

Right.

> What difference does it make on B2G?

Instead of "Process ($PID)", we now say "Home Screen ($PID)" or "Calculator ($PID)".  This matches the output in b2g-procrank, which is a tool we have which annotates the output of procrank to show the app name.
Attachment #668062 - Flags: review?(n.nethercote) → review+
https://hg.mozilla.org/mozilla-central/rev/6c86cf8e2478
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: