Closed
Bug 124226
Opened 23 years ago
Closed 13 years ago
add timing code to native component loader
Categories
(Core :: XPCOM, defect)
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;
| Reporter | ||
Comment 1•23 years ago
|
||
dp, this has been sitting in my tree for a while. Can I get you to r= it?
| Reporter | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.9
Comment 2•23 years ago
|
||
Sure. r=dp Since this is debug code, I dont think you should sweat on sr=
| Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.9 → ---
Updated•19 years ago
|
Assignee: dougt → nobody
QA Contact: scc → xpcom
Updated•13 years ago
|
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.
Description
•