Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit ab08336

Browse files
committed
Backed out changeset c75481a07302 (bug 851611)
1 parent 3091d3e commit ab08336

65 files changed

Lines changed: 130 additions & 140 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/base/src/nsFrameLoader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ nsFrameLoader::ReallyStartLoadingInternal()
410410
{
411411
NS_ENSURE_STATE(mURIToLoad && mOwnerContent && mOwnerContent->IsInDoc());
412412

413-
PROFILER_LABEL("nsFrameLoader", "ReallyStartLoading");
413+
SAMPLE_LABEL("nsFrameLoader", "ReallyStartLoading");
414414

415415
nsresult rv = MaybeCreateDocShell();
416416
if (NS_FAILED(rv)) {
@@ -2024,7 +2024,7 @@ nsFrameLoader::TryRemoteBrowser()
20242024
return false;
20252025
}
20262026

2027-
PROFILER_LABEL("nsFrameLoader", "CreateRemoteBrowser");
2027+
SAMPLE_LABEL("nsFrameLoader", "CreateRemoteBrowser");
20282028

20292029
MutableTabContext context;
20302030
nsCOMPtr<mozIApplication> ownApp = GetOwnApp();

content/base/src/nsObjectLoadingContent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ NS_IMETHODIMP
822822
nsObjectLoadingContent::OnStartRequest(nsIRequest *aRequest,
823823
nsISupports *aContext)
824824
{
825-
PROFILER_LABEL("nsObjectLoadingContent", "OnStartRequest");
825+
SAMPLE_LABEL("nsObjectLoadingContent", "OnStartRequest");
826826

827827
LOG(("OBJLC [%p]: Channel OnStartRequest", this));
828828

content/base/src/nsXMLHttpRequest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ nsXMLHttpRequest::OnDataAvailable(nsIRequest *request,
18551855
NS_IMETHODIMP
18561856
nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
18571857
{
1858-
PROFILER_LABEL("nsXMLHttpRequest", "OnStartRequest");
1858+
SAMPLE_LABEL("nsXMLHttpRequest", "OnStartRequest");
18591859
nsresult rv = NS_OK;
18601860
if (!mFirstStartRequestSeen && mRequestObserver) {
18611861
mFirstStartRequestSeen = true;
@@ -2041,7 +2041,7 @@ nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
20412041
NS_IMETHODIMP
20422042
nsXMLHttpRequest::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult status)
20432043
{
2044-
PROFILER_LABEL("content", "nsXMLHttpRequest::OnStopRequest");
2044+
SAMPLE_LABEL("content", "nsXMLHttpRequest::OnStopRequest");
20452045
if (request != mChannel) {
20462046
// Can this still happen?
20472047
return NS_OK;

content/events/src/nsEventDispatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ nsEventDispatcher::Dispatch(nsISupports* aTarget,
429429
nsDispatchingCallback* aCallback,
430430
nsCOMArray<nsIDOMEventTarget>* aTargets)
431431
{
432-
PROFILER_LABEL("nsEventDispatcher", "Dispatch");
432+
SAMPLE_LABEL("nsEventDispatcher", "Dispatch");
433433
NS_ASSERTION(aEvent, "Trying to dispatch without nsEvent!");
434434
NS_ENSURE_TRUE(!aEvent->mFlags.mIsBeingDispatched,
435435
NS_ERROR_ILLEGAL_VALUE);

content/events/src/nsEventStateManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3932,7 +3932,7 @@ nsEventStateManager::DispatchMouseEvent(nsGUIEvent* aEvent, uint32_t aMessage,
39323932
return mPresContext->GetPrimaryFrameFor(content);
39333933
}
39343934

3935-
PROFILER_LABEL("Input", "DispatchMouseEvent");
3935+
SAMPLE_LABEL("Input", "DispatchMouseEvent");
39363936
nsEventStatus status = nsEventStatus_eIgnore;
39373937
nsMouseEvent event(aEvent->mFlags.mIsTrusted, aMessage, aEvent->widget,
39383938
nsMouseEvent::eReal);

content/html/content/src/nsGenericHTMLFrameElement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ nsGenericHTMLFrameElement::BindToTree(nsIDocument* aDocument,
185185
NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
186186
"Missing a script blocker!");
187187

188-
PROFILER_LABEL("nsGenericHTMLFrameElement", "BindToTree");
188+
SAMPLE_LABEL("nsGenericHTMLFrameElement", "BindToTree");
189189

190190
// We're in a document now. Kick off the frame load.
191191
LoadSrc();

content/html/document/src/PluginDocument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class PluginStreamListener : public MediaDocumentStreamListener
7373
NS_IMETHODIMP
7474
PluginStreamListener::OnStartRequest(nsIRequest* request, nsISupports *ctxt)
7575
{
76-
PROFILER_LABEL("PluginStreamListener", "OnStartRequest");
76+
SAMPLE_LABEL("PluginStreamListener", "OnStartRequest");
7777

7878
nsCOMPtr<nsIContent> embed = mPluginDoc->GetPluginContent();
7979
nsCOMPtr<nsIObjectLoadingContent> objlc = do_QueryInterface(embed);

dom/base/nsDOMWindowUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ nsDOMWindowUtils::SendMouseEventToWindow(const nsAString& aType,
579579
float aPressure,
580580
unsigned short aInputSourceArg)
581581
{
582-
PROFILER_LABEL("nsDOMWindowUtils", "SendMouseEventToWindow");
582+
SAMPLE_LABEL("nsDOMWindowUtils", "SendMouseEventToWindow");
583583
return SendMouseEventCommon(aType, aX, aY, aButton, aClickCount, aModifiers,
584584
aIgnoreRootScrollFrame, aPressure,
585585
aInputSourceArg, true, nullptr);
@@ -1139,7 +1139,7 @@ NS_IMETHODIMP
11391139
nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener *aListener,
11401140
int32_t aExtraForgetSkippableCalls)
11411141
{
1142-
PROFILER_LABEL("GC", "GarbageCollect");
1142+
SAMPLE_LABEL("GC", "GarbageCollect");
11431143
// Always permit this in debug builds.
11441144
#ifndef DEBUG
11451145
if (!nsContentUtils::IsCallerChrome()) {

dom/base/nsJSEnvironment.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ nsJSContext::EvaluateString(const nsAString& aScript,
12521252
bool aCoerceToString,
12531253
JS::Value* aRetValue)
12541254
{
1255-
PROFILER_LABEL("JS", "EvaluateString");
1255+
SAMPLE_LABEL("JS", "EvaluateString");
12561256
MOZ_ASSERT_IF(aOptions.versionSet, aOptions.version != JSVERSION_UNKNOWN);
12571257
MOZ_ASSERT_IF(aCoerceToString, aRetValue);
12581258
NS_ENSURE_TRUE(mIsInitialized, NS_ERROR_NOT_INITIALIZED);
@@ -1341,7 +1341,7 @@ nsJSContext::CompileScript(const PRUnichar* aText,
13411341
nsScriptObjectHolder<JSScript>& aScriptObject,
13421342
bool aSaveSource /* = false */)
13431343
{
1344-
PROFILER_LABEL_PRINTF("JS", "Compile Script", "%s", aURL ? aURL : "");
1344+
SAMPLE_LABEL_PRINTF("JS", "Compile Script", "%s", aURL ? aURL : "");
13451345
NS_ENSURE_TRUE(mIsInitialized, NS_ERROR_NOT_INITIALIZED);
13461346

13471347
NS_ENSURE_ARG_POINTER(aPrincipal);
@@ -1502,7 +1502,7 @@ nsJSContext::CallEventHandler(nsISupports* aTarget, JSObject* aScope,
15021502
return NS_OK;
15031503
}
15041504

1505-
PROFILER_LABEL("JS", "CallEventHandler");
1505+
SAMPLE_LABEL("JS", "CallEventHandler");
15061506

15071507
nsAutoMicroTask mt;
15081508
xpc_UnmarkGrayObject(aScope);
@@ -2559,7 +2559,7 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
25592559
IsShrinking aShrinking,
25602560
int64_t aSliceMillis)
25612561
{
2562-
PROFILER_LABEL("GC", "GarbageCollectNow");
2562+
SAMPLE_LABEL("GC", "GarbageCollectNow");
25632563

25642564
MOZ_ASSERT_IF(aSliceMillis, aIncremental == IncrementalGC);
25652565

@@ -2626,7 +2626,7 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
26262626
void
26272627
nsJSContext::ShrinkGCBuffersNow()
26282628
{
2629-
PROFILER_LABEL("GC", "ShrinkGCBuffersNow");
2629+
SAMPLE_LABEL("GC", "ShrinkGCBuffersNow");
26302630

26312631
KillShrinkGCBuffersTimer();
26322632

@@ -2740,7 +2740,7 @@ nsJSContext::CycleCollectNow(nsICycleCollectorListener *aListener,
27402740
return;
27412741
}
27422742

2743-
PROFILER_LABEL("CC", "CycleCollectNow");
2743+
SAMPLE_LABEL("CC", "CycleCollectNow");
27442744

27452745
PRTime start = PR_Now();
27462746

dom/plugins/base/nsPluginStreamListenerPeer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request,
443443
nsISupports* aContext)
444444
{
445445
nsresult rv = NS_OK;
446-
PROFILER_LABEL("nsPluginStreamListenerPeer", "OnStartRequest");
446+
SAMPLE_LABEL("nsPluginStreamListenerPeer", "OnStartRequest");
447447

448448
if (mRequests.IndexOfObject(GetBaseRequest(request)) == -1) {
449449
NS_ASSERTION(mRequests.Count() == 0,

0 commit comments

Comments
 (0)