Closed Bug 124226 Opened 23 years ago Closed 13 years ago

add timing code to native component loader

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: dougt, Unassigned)

Details

Index: nsNativeComponentLoader.cpp =================================================================== RCS file: /cvsroot/mozilla/xpcom/components/nsNativeComponentLoader.cpp,v retrieving revision 1.77 diff -u -r1.77 nsNativeComponentLoader.cpp --- nsNativeComponentLoader.cpp 29 Jan 2002 21:21:58 -0000 1.77 +++ nsNativeComponentLoader.cpp 7 Feb 2002 20:07:01 -0000 @@ -250,14 +250,16 @@ { #ifdef DEBUG /* do we _really_ want to print this every time? */ + PRIntervalTime startTime = PR_IntervalNow(); printf("nsNativeComponentLoader: autoregistering begins.\n"); #endif nsresult rv = RegisterComponentsInDir(aWhen, aDirectory); #ifdef DEBUG - printf("nsNativeComponentLoader: autoregistering %s\n", - NS_FAILED(rv) ? "FAILED" : "succeeded"); + printf("nsNativeComponentLoader: autoregistering %s (%dms)\n", + NS_FAILED(rv) ? "FAILED" : "succeeded", + PR_IntervalToMilliseconds( PR_IntervalNow() - startTime )); #endif return rv;
dp, this has been sitting in my tree for a while. Can I get you to r= it?
Target Milestone: --- → mozilla0.9.9
Sure. r=dp Since this is debug code, I dont think you should sweat on sr=
Keywords: nsbeta1-
Target Milestone: mozilla0.9.9 → ---
not needed anytime soon.
Target Milestone: --- → Future
Assignee: dougt → nobody
QA Contact: scc → xpcom
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.