Closed Bug 823226 Opened 12 years ago Closed 12 years ago

Add environment variables to control cycle collector logging

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

No description provided.
Assignee: nobody → continuation
Attachment #694083 - Flags: review?
Comment on attachment 694083 [details] [diff] [review] convert form globals to reading from environment variables Suggestions welcome on env var names. No hurry on this review, as I'm on holiday until the 26th or so.
Attachment #694083 - Flags: review? → review?(bugs)
Comment on attachment 694083 [details] [diff] [review] convert form globals to reading from environment variables > nsCycleCollectorParams() : >+ mLogAll (PR_GetEnv("XPCOM_CC_LOG_ALL") != NULL), >+ mLogShutdown (PR_GetEnv("XPCOM_CC_LOG_SHUTDOWN") != NULL), >+ mAllTracesAtShutdown (PR_GetEnv("XPCOM_CC_ALL_TRACES_AT_SHUTDOWN") != NULL), != NULL is not pretty but let's fix coding style elsewhere.
Attachment #694083 - Flags: review?(bugs) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d29b182e169e This page should probably be updated: https://wiki.mozilla.org/Performance:Leak_Tools#Cycle_collector_heap_dump Really, heap dumping needs to be documented separately. There's a page around somewhere.
Keywords: dev-doc-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: