enable MOZ_TIMELINE tool, bug 78793, r=rogc, sr=waterson

This commit is contained in:
cathleen@netscape.com
2001-08-17 02:03:34 +00:00
parent 738e5287dc
commit aaab752d86
22 changed files with 825 additions and 5 deletions

View File

@@ -43,6 +43,7 @@
#include "nsCRT.h"
#include "nsIObserverService.h"
#include "nsITimelineService.h"
#ifdef XP_MAC // sdagley dougt fix
#include <Files.h>
@@ -91,6 +92,11 @@ nsNativeComponentLoader::GetFactory(const nsIID & aCID,
const char *aType,
nsIFactory **_retval)
{
NS_TIMELINE_MARKV(("nsNativeComponentLoader::GetFactory(%s)...",
aLocation));
NS_TIMELINE_INDENT();
NS_TIMELINE_START_TIMER("nsNativeComponentLoader::GetFactory");
nsresult rv;
if (!_retval)
@@ -158,6 +164,12 @@ nsNativeComponentLoader::GetFactory(const nsIID & aCID,
// this is ok to limp along.
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Factory creation failed");
NS_TIMELINE_STOP_TIMER("nsNativeComponentLoader::GetFactory");
NS_TIMELINE_OUTDENT();
NS_TIMELINE_MARKV(("...nsNativeComponentLoader::GetFactory(%s) done",
aLocation));
NS_TIMELINE_MARK_TIMER("nsNativeComponentLoader::GetFactory");
return rv;
}