Closed
Bug 374239
Opened 18 years ago
Closed 18 years ago
Add debug timing code to nsCycleCollector::Collect().
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: jst, Assigned: jst)
Details
Attachments
(1 file)
|
3.01 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•18 years ago
|
||
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 2•18 years ago
|
||
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+
| Assignee | ||
Comment 3•18 years ago
|
||
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.
Description
•