Removed the rest of the PERF_METRICS stuff that was removed when the WebShell changes were landed (the code is now in the Viewer itself).

This commit is contained in:
attinasi@netscape.com
2000-04-29 00:07:40 +00:00
parent 75b19f0afe
commit eb5ca3b39b
2 changed files with 2 additions and 20 deletions

View File

@@ -83,7 +83,6 @@ typedef unsigned long HMTX;
#include "nsIDOMRange.h"
#include "nsIURIContentListener.h"
#include "nsIDOMDocument.h"
#include "nsTimer.h"
#include "nsIBaseWindow.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
@@ -319,8 +318,6 @@ protected:
const char* aCommand,
nsIStreamListener** aResult);
MOZ_TIMER_DECLARE(mTotalTime)
#ifdef DETECT_WEBSHELL_LEAKS
private:
// We're counting the number of |nsWebShells| to help find leaks
@@ -1132,13 +1129,6 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
if(loader != mDocLoader)
return NS_OK;
#ifdef MOZ_PERF_METRICS
MOZ_TIMER_DEBUGLOG(("Stop: nsWebShell::OnEndDocumentLoad(), this=%p\n", this));
MOZ_TIMER_STOP(mTotalTime);
MOZ_TIMER_LOG(("Total (Layout + Page Load) Time (webshell=%p): ", this));
MOZ_TIMER_PRINT(mTotalTime);
#endif
nsresult rv = NS_ERROR_FAILURE;
if(!channel)
return NS_ERROR_NULL_POINTER;
@@ -1367,6 +1357,7 @@ nsWebShell::OnStartURLLoad(nsIDocumentLoader* loader,
{
mDocLoaderObserver->OnStartURLLoad(mDocLoader, channel);
}
return NS_OK;
}