@@ -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,
26262626void
26272627nsJSContext::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
0 commit comments