Closed
Bug 790947
Opened 12 years ago
Closed 12 years ago
Show in the error console the path to the dumped memory reports
Categories
(Toolkit :: about:memory, defect)
Toolkit
about:memory
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 file, 1 obsolete file)
2.83 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Bug 768470 added a way to dump the memory reports to a file, but the path where they are dumped isn't obvious (to me at least).
On Mac they are in ~/Library/Caches/TemporaryItems/memory-reports-<pid>.json
I didn't know that folder existed, and looked only in /tmp and /var/tmp.
The attached patch dumps the path to the Error Console, exactly like the cycle collector dump does (http://hg.mozilla.org/mozilla-central/annotate/f39786e8364d/xpcom/base/nsCycleCollector.cpp#l1345).
Attachment #660826 -
Flags: review?(n.nethercote)
Comment 1•12 years ago
|
||
Comment on attachment 660826 [details] [diff] [review]
Patch
Review of attachment 660826 [details] [diff] [review]:
-----------------------------------------------------------------
Great idea, thanks for the patch.
::: xpcom/base/nsMemoryReporterManager.cpp
@@ +1028,5 @@
> + if (cs) {
> + nsString path;
> + if (NS_SUCCEEDED(tmpFile->GetPath(path)))
> + cs->LogStringMessage(path.get());
> + }
Just printing the filename by itself looks a bit odd. Can you change it to something like "nsIMemoryReporterManager::dumpReports() dumped reports to <file>"?
(I realize the CC dump just prints the filename; bonus points if you change that message similarly.)
Attachment #660826 -
Flags: review?(n.nethercote) → review+
Comment 2•12 years ago
|
||
when you create CC/GC logs, you get the full path in error console.
Comment 3•12 years ago
|
||
Er, I totally misinterpreted "I realize the CC dump just prints the filename" :)
Feel free to change CC/GC error console messages too.
Assignee | ||
Comment 4•12 years ago
|
||
Assignee: nobody → florian
Attachment #660826 -
Attachment is obsolete: true
Attachment #661175 -
Flags: review?(bugs)
Updated•12 years ago
|
Attachment #661175 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•12 years ago
|
||
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Comment 6•12 years ago
|
||
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.
Description
•