Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 579571 - Remove --enable-timeline support. r=tglek
Browse files Browse the repository at this point in the history
  • Loading branch information
Kepler-L2 committed Jul 17, 2011
1 parent d624987 commit 90980c0
Show file tree
Hide file tree
Showing 37 changed files with 1 addition and 1,530 deletions.
1 change: 0 additions & 1 deletion config/autoconf.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ MOZ_FIX_LINK_PATHS=@MOZ_FIX_LINK_PATHS@
XPCOM_FROZEN_LDOPTS=@XPCOM_FROZEN_LDOPTS@
XPCOM_LIBS=@XPCOM_LIBS@
LIBXUL_LIBS=@LIBXUL_LIBS@
MOZ_TIMELINE=@MOZ_TIMELINE@

ENABLE_STRIP = @ENABLE_STRIP@
PKG_SKIP_STRIP = @PKG_SKIP_STRIP@
Expand Down
15 changes: 0 additions & 15 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -4817,7 +4817,6 @@ MOZ_SPELLCHECK=1
MOZ_SPLASHSCREEN=
MOZ_STORAGE=1
MOZ_SVG_DLISTS=
MOZ_TIMELINE=
MOZ_TOOLKIT_SEARCH=1
MOZ_UI_LOCALE=en-US
MOZ_UNIVERSALCHARDET=1
Expand Down Expand Up @@ -7748,19 +7747,6 @@ dnl =
dnl ========================================================
MOZ_ARG_HEADER(Profiling and Instrumenting)

dnl ========================================================
dnl = Enable timeline service, which provides lightweight
dnl = instrumentation of mozilla for performance measurement.
dnl = Timeline is off by default.
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(timeline,
[ --enable-timeline Enable timeline services ],
MOZ_TIMELINE=1,
MOZ_TIMELINE= )
if test -n "$MOZ_TIMELINE"; then
AC_DEFINE(MOZ_TIMELINE)
fi

dnl ========================================================
dnl = Enable NS_FUNCTION_TIMER, which provides Function
dnl = timing for identifying code bottlenecks
Expand Down Expand Up @@ -8979,7 +8965,6 @@ AC_SUBST(MOZ_OS2_TOOLS)

AC_SUBST(MOZ_POST_DSO_LIB_COMMAND)
AC_SUBST(MOZ_POST_PROGRAM_COMMAND)
AC_SUBST(MOZ_TIMELINE)

# The following variables are available to branding and application
# configuration ($BRANDING/configure.sh and $APPLICATION/confvars.sh):
Expand Down
2 changes: 0 additions & 2 deletions content/xul/content/src/nsXULElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
#include "nsIDOMXULDocument.h"

#include "nsReadableUtils.h"
#include "nsITimelineService.h"
#include "nsIFrame.h"
#include "nsNodeInfoManager.h"
#include "nsXBLBinding.h"
Expand Down Expand Up @@ -3002,7 +3001,6 @@ nsXULPrototypeScript::Deserialize(nsIObjectInputStream* aStream,
nsIURI* aDocumentURI,
const nsCOMArray<nsINodeInfo> *aNodeInfos)
{
NS_TIMELINE_MARK_FUNCTION("chrome script deserialize");
nsresult rv;

NS_ASSERTION(!mSrcLoading || mSrcLoadWaiters != nsnull ||
Expand Down
3 changes: 0 additions & 3 deletions dom/base/nsJSEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
#include "nsIArray.h"
#include "nsIObjectInputStream.h"
#include "nsIObjectOutputStream.h"
#include "nsITimelineService.h"
#include "nsDOMScriptObjectHolder.h"
#include "prmem.h"
#include "WrapperFactory.h"
Expand Down Expand Up @@ -2100,8 +2099,6 @@ nsJSContext::Deserialize(nsIObjectInputStream* aStream,

NS_TIME_FUNCTION_MIN(1.0);

NS_TIMELINE_MARK_FUNCTION("js script deserialize");

PRUint32 size;
rv = aStream->Read32(&size);
if (NS_FAILED(rv)) return rv;
Expand Down
9 changes: 0 additions & 9 deletions dom/plugins/base/nsPluginHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2273,18 +2273,12 @@ nsresult nsPluginHost::LoadPlugins()
return NS_OK;
}

#include "nsITimelineService.h"

// if aCreatePluginList is false we will just scan for plugins
// and see if any changes have been made to the plugins.
// This is needed in ReloadPlugins to prevent possible recursive reloads
nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsChanged)
{
Telemetry::AutoTimer<Telemetry::FIND_PLUGINS> telemetry;
// let's start timing if we are only really creating the plugin list
if (aCreatePluginList) {
NS_TIMELINE_START_TIMER("LoadPlugins");
}

#ifdef CALL_SAFETY_ON
// check preferences on whether or not we want to try safe calls to plugins
Expand Down Expand Up @@ -2459,9 +2453,6 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);

NS_TIMELINE_STOP_TIMER("LoadPlugins");
NS_TIMELINE_MARK_TIMER("LoadPlugins");

return NS_OK;
}

Expand Down
1 change: 0 additions & 1 deletion embedding/components/find/src/nsWebBrowserFind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
#include "nsIServiceManager.h"
#include "nsIObserverService.h"
#include "nsISupportsPrimitives.h"
#include "nsITimelineService.h"
#include "nsFind.h"
#include "nsDOMError.h"
#include "nsFocusManager.h"
Expand Down
5 changes: 0 additions & 5 deletions intl/locale/src/nsCharsetAliasImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsUConvPropertySearch.h"
#include "nsITimelineService.h"
#include "nsCharsetAlias.h"

//--------------------------------------------------------------
Expand All @@ -71,16 +70,12 @@ NS_IMETHODIMP nsCharsetAlias2::GetPreferred(const nsACString& aAlias,
{
if (aAlias.IsEmpty()) return NS_ERROR_NULL_POINTER;

NS_TIMELINE_START_TIMER("nsCharsetAlias2:GetPreferred");

nsCAutoString key(aAlias);
ToLowerCase(key);

nsresult rv = nsUConvPropertySearch::SearchPropertyValue(kAliases,
NS_ARRAY_LENGTH(kAliases), key, oResult);

NS_TIMELINE_STOP_TIMER("nsCharsetAlias2:GetPreferred");
NS_TIMELINE_MARK_TIMER("nsCharsetAlias2:GetPreferred");
return rv;
}

Expand Down
7 changes: 1 addition & 6 deletions intl/locale/src/os2/nsOS2Charset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include "nsReadableUtils.h"
#include "nsLocaleCID.h"
#include "nsIServiceManager.h"
#include "nsITimelineService.h"
#include "nsPlatformCharset.h"

static const char* kOS2Charsets[][3] = {
Expand All @@ -59,17 +58,13 @@ NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)

nsPlatformCharset::nsPlatformCharset()
{
NS_TIMELINE_START_TIMER("nsPlatformCharset()");

UINT acp = ::WinQueryCp(HMQ_CURRENT);
PRInt32 acpint = (PRInt32)(acp & 0x00FFFF);
nsAutoString acpKey(NS_LITERAL_STRING("os2."));
acpKey.AppendInt(acpint, 10);
nsresult res = MapToCharset(acpKey, mCharset);
}

NS_TIMELINE_STOP_TIMER("nsPlatformCharset()");
NS_TIMELINE_MARK_TIMER("nsPlatformCharset()");
}
nsPlatformCharset::~nsPlatformCharset()
{
}
Expand Down
6 changes: 0 additions & 6 deletions intl/locale/src/windows/nsWinCharset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "nsReadableUtils.h"
#include "nsLocaleCID.h"
#include "nsServiceManagerUtils.h"
#include "nsITimelineService.h"
#include "nsPlatformCharset.h"
#include "nsEncoderDecoderUtils.h"

Expand All @@ -56,14 +55,9 @@ NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)

nsPlatformCharset::nsPlatformCharset()
{
NS_TIMELINE_START_TIMER("nsPlatformCharset()");

nsAutoString acpKey(NS_LITERAL_STRING("acp."));
acpKey.AppendInt(PRInt32(::GetACP() & 0x00FFFF), 10);
MapToCharset(acpKey, mCharset);

NS_TIMELINE_STOP_TIMER("nsPlatformCharset()");
NS_TIMELINE_MARK_TIMER("nsPlatformCharset()");
}

nsPlatformCharset::~nsPlatformCharset()
Expand Down
3 changes: 0 additions & 3 deletions intl/strres/src/nsStringBundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#include "nsCOMArray.h"
#include "nsTextFormatter.h"
#include "nsIErrorService.h"
#include "nsITimelineService.h"
#include "nsICategoryManager.h"

#include "nsPrintfCString.h"
Expand Down Expand Up @@ -128,8 +127,6 @@ nsStringBundle::LoadProperties()
rv = channel->Open(getter_AddRefs(in));
if (NS_FAILED(rv)) return rv;

NS_TIMELINE_MARK_FUNCTION("loading properties");

NS_ASSERTION(NS_SUCCEEDED(rv) && in, "Error in OpenBlockingStream");
NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && in, NS_ERROR_FAILURE);

Expand Down
1 change: 0 additions & 1 deletion js/src/config/autoconf.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ MOZ_FIX_LINK_PATHS=@MOZ_FIX_LINK_PATHS@

XPCOM_FROZEN_LDOPTS=@XPCOM_FROZEN_LDOPTS@
XPCOM_LIBS=@XPCOM_LIBS@
MOZ_TIMELINE=@MOZ_TIMELINE@

ENABLE_STRIP = @ENABLE_STRIP@
PKG_SKIP_STRIP = @PKG_SKIP_STRIP@
Expand Down
14 changes: 0 additions & 14 deletions js/src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -5128,19 +5128,6 @@ dnl =
dnl ========================================================
MOZ_ARG_HEADER(Profiling and Instrumenting)

dnl ========================================================
dnl = Enable timeline service, which provides lightweight
dnl = instrumentation of mozilla for performance measurement.
dnl = Timeline is off by default.
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(timeline,
[ --enable-timeline Enable timeline services ],
MOZ_TIMELINE=1,
MOZ_TIMELINE= )
if test -n "$MOZ_TIMELINE"; then
AC_DEFINE(MOZ_TIMELINE)
fi

dnl ========================================================
dnl = Support for Quantify (Windows)
dnl ========================================================
Expand Down Expand Up @@ -5677,7 +5664,6 @@ AC_SUBST(MOZ_OS2_TOOLS)

AC_SUBST(MOZ_POST_DSO_LIB_COMMAND)
AC_SUBST(MOZ_POST_PROGRAM_COMMAND)
AC_SUBST(MOZ_TIMELINE)

AC_SUBST(MOZ_APP_NAME)
AC_SUBST(MOZ_APP_DISPLAYNAME)
Expand Down
17 changes: 0 additions & 17 deletions layout/base/nsDocumentViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@

#include "nsIScrollableFrame.h"
#include "nsIHTMLDocument.h"
#include "nsITimelineService.h"
#include "nsGfxCIID.h"
#include "nsStyleSheetService.h"
#include "nsURILoader.h"
Expand Down Expand Up @@ -1068,22 +1067,6 @@ DocumentViewerImpl::LoadComplete(nsresult aStatus)
if (timing) {
timing->NotifyLoadEventEnd();
}
#ifdef MOZ_TIMELINE
// if navigator.xul's load is complete, the main nav window is visible
// mark that point.

nsIURI *uri = mDocument ? mDocument->GetDocumentURI() : nsnull;

if (uri) {
//printf("DEBUG: getting spec for uri (%p)\n", uri.get());
nsCAutoString spec;
uri->GetSpec(spec);
if (spec.EqualsLiteral("chrome://navigator/content/navigator.xul") ||
spec.EqualsLiteral("chrome://browser/content/browser.xul")) {
NS_TIMELINE_MARK("Navigator Window visible now");
}
}
#endif /* MOZ_TIMELINE */
}
} else {
// XXX: Should fire error event to the document...
Expand Down
1 change: 0 additions & 1 deletion layout/printing/nsPagePrintTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

// Timer Includes
#include "nsITimer.h"
#include "nsITimelineService.h"

#include "nsIDocumentViewerPrint.h"
#include "nsPrintObject.h"
Expand Down
11 changes: 0 additions & 11 deletions layout/style/Loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
#include "nsCRT.h"
#include "nsIScriptSecurityManager.h"
#include "nsContentPolicyUtils.h"
#include "nsITimelineService.h"
#include "nsIHttpChannel.h"
#include "nsIScriptError.h"
#include "nsMimeTypes.h"
Expand Down Expand Up @@ -816,11 +815,6 @@ SheetLoadData::OnStreamComplete(nsIUnicharStreamLoader* aLoader,

mSheet->SetPrincipal(principal);

#ifdef MOZ_TIMELINE
NS_TIMELINE_OUTDENT();
NS_TIMELINE_MARK_CHANNEL("SheetLoadData::OnStreamComplete(%s)", channel);
#endif // MOZ_TIMELINE

// If it's an HTTP channel, we want to make sure this is not an
// error document we got.
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
Expand Down Expand Up @@ -1441,11 +1435,6 @@ Loader::LoadSheet(SheetLoadData* aLoadData, StyleSheetState aSheetState)
}
}

#ifdef MOZ_TIMELINE
NS_TIMELINE_MARK_URI("Loading style sheet: %s", aLoadData->mURI);
NS_TIMELINE_INDENT();
#endif

nsCOMPtr<nsIChannel> channel;
rv = NS_NewChannel(getter_AddRefs(channel),
aLoadData->mURI, nsnull, loadGroup, nsnull,
Expand Down
8 changes: 0 additions & 8 deletions layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
#include "nsTreeUtils.h"
#include "nsChildIterator.h"
#include "nsITheme.h"
#include "nsITimelineService.h"
#include "imgIRequest.h"
#include "imgIContainer.h"
#include "imgIContainerObserver.h"
Expand Down Expand Up @@ -3616,9 +3615,6 @@ nsTreeBodyFrame::PaintText(PRInt32 aRowIndex,
fontMet->GetStrikeout(offset, size);
aRenderingContext.FillRect(textRect.x, textRect.y + baseline - offset, textRect.width, size);
}
#ifdef MOZ_TIMELINE
NS_TIMELINE_START_TIMER("Render Outline Text");
#endif
PRUint8 direction = aTextRTL ? NS_STYLE_DIRECTION_RTL :
NS_STYLE_DIRECTION_LTR;

Expand All @@ -3635,10 +3631,6 @@ nsTreeBodyFrame::PaintText(PRInt32 aRowIndex,
ctx->Paint(opacity);
}

#ifdef MOZ_TIMELINE
NS_TIMELINE_STOP_TIMER("Render Outline Text");
NS_TIMELINE_MARK_TIMER("Render Outline Text");
#endif
}

void
Expand Down
10 changes: 0 additions & 10 deletions modules/libpref/src/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
#include "prefapi_private_data.h"
#include "PrefTuple.h"

#include "nsITimelineService.h"

#include "mozilla/Omnijar.h"
#include "nsZipArchive.h"

Expand Down Expand Up @@ -811,14 +809,6 @@ static nsresult openPrefFile(nsIFile* aFile)
{
nsCOMPtr<nsIInputStream> inStr;

#if MOZ_TIMELINE
{
nsCAutoString str;
aFile->GetNativePath(str);
NS_TIMELINE_MARK_FUNCTION1("load pref file", str.get());
}
#endif

nsresult rv = NS_NewLocalFileInputStream(getter_AddRefs(inStr), aFile);
if (NS_FAILED(rv))
return rv;
Expand Down
2 changes: 0 additions & 2 deletions netwerk/base/src/nsIOService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#include "nsISupportsPrimitives.h"
#include "nsIProxiedProtocolHandler.h"
#include "nsIProxyInfo.h"
#include "nsITimelineService.h"
#include "nsEscape.h"
#include "nsNetCID.h"
#include "nsIRecyclingAllocator.h"
Expand Down Expand Up @@ -605,7 +604,6 @@ nsIOService::NewChannelFromURIWithProxyFlags(nsIURI *aURI,
{
nsresult rv;
NS_ENSURE_ARG_POINTER(aURI);
NS_TIMELINE_MARK_URI("nsIOService::NewChannelFromURI(%s)", aURI);

nsCAutoString scheme;
rv = aURI->GetScheme(scheme);
Expand Down
Loading

0 comments on commit 90980c0

Please sign in to comment.