Closed Bug 374239 Opened 18 years ago Closed 18 years ago

Add debug timing code to nsCycleCollector::Collect().

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file)

Having code in place that can dump how much time we spend in various parts of cycle collection would be useful in tuning and debugging cycle collection... Patch coming up.
This adds some trivial output about how long it takes to do various parts of the cycle collection call. #define COLLECT_TIME_DEBUG to use it.
Attachment #258858 - Flags: superreview?(peterv)
Attachment #258858 - Flags: review?(peterv)
Comment on attachment 258858 [details] [diff] [review] Add time tracking code (#define COLLECT_TIME_DEBUG >diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp >index 3c4d6d1..56213fe 100644 >--- a/xpcom/base/nsCycleCollector.cpp >+++ b/xpcom/base/nsCycleCollector.cpp >@@ -1646,16 +1651,35 @@ nsCycleCollector::Collect(PRUint32 aTryCollections) >- if (mRuntimes[i]) >+ if (mRuntimes[i]) { > mRuntimes[i]->BeginCycleCollection(); >+ >+ } No need for these changes
Attachment #258858 - Flags: superreview?(peterv)
Attachment #258858 - Flags: superreview+
Attachment #258858 - Flags: review?(peterv)
Attachment #258858 - Flags: review+
Indeed, leftovers from earlier version of this change, prior to the addition of the aTryCollections argument and the loop on that :) Fix checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: