Closed
Bug 71235
Opened 25 years ago
Closed 25 years ago
Make Pagecycle do some basic timing
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dougt, Assigned: dougt)
Details
This patch makes the pagecycler in mozilla do some simple timing.
can I get a r=/sr= from you chris?
Index: xpfe/browser/src/nsBrowserInstance.cpp
===================================================================
RCS file: /cvsroot/mozilla/xpfe/browser/src/nsBrowserInstance.cpp,v
retrieving revision 1.188
diff -u -r1.188 nsBrowserInstance.cpp
--- nsBrowserInstance.cpp 2001/02/21 20:37:58 1.188
+++ nsBrowserInstance.cpp 2001/03/07 22:44:07
@@ -274,9 +274,11 @@
const PRUnichar* someData) {
nsresult rv = NS_OK;
nsString data(someData);
char* dataStr = data.ToNewCString();
- printf("########## PageCycler loaded: %s\n", dataStr);
+ printf("########## PageCycler loaded (%d ms): %s\n",
+ PR_IntervalToMilliseconds(PR_IntervalNow() - mIntervalTime),
+ dataStr);
nsCRT::free(dataStr);
nsAutoString url;
@@ -340,6 +342,7 @@
const PRUnichar* url = self->mLastRequest.GetUnicode();
printf("########## PageCycler starting: %s\n",
NS_ConvertUCS2toUTF8(url).get());
+ self->mIntervalTime = PR_IntervalNow();
self->mAppCore->LoadUrl(url);
// start new timer
@@ -381,7 +384,7 @@
}
protected:
- nsBrowserInstance* mAppCore;
+ nsBrowserInstance* mAppCore;
nsFileSpec mFile;
char* mBuffer;
char* mCursor;
@@ -389,6 +392,7 @@
nsCOMPtr<nsITimer> mShutdownTimer;
PRUint32 mTimeoutValue;
PRUint32 mWaitValue;
+ PRIntervalTime mIntervalTime;
};
NS_IMPL_ADDREF(PageCycler)
Comment 1•25 years ago
|
||
r=waterson
| Assignee | ||
Comment 2•25 years ago
|
||
thanks chris.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•