gecko-dev/dom/ipc
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
..
tests Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
CoalescedWheelData.cpp Bug 1337963 - Coalesce wheel events in the content process so that long wheel event handlers don't hang the content process. r=smaug 2017-02-21 17:56:46 +08:00
CoalescedWheelData.h Bug 1337963 - Coalesce wheel events in the content process so that long wheel event handlers don't hang the content process. r=smaug 2017-02-21 17:56:46 +08:00
ColorPickerParent.cpp
ColorPickerParent.h
ContentBridgeChild.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
ContentBridgeChild.h Bug 1363323 - Add TabGroup support to PContentBridge too. r=billm. 2017-05-02 11:57:51 +02:00
ContentBridgeParent.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
ContentBridgeParent.h Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
ContentChild.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
ContentChild.h Bug 1365927 - Part 4. Replace PCompositorBridge integration hooks with PCompositorManager. r=dvander 2017-06-14 11:39:59 -04:00
ContentParent.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
ContentParent.h Bug 1360308 - Part 2: Use callback in CrashReporterHost::GenerateMinidumpAndPair() and up the caller chain. r=gsvelto 2017-06-22 18:52:58 +08:00
ContentPrefs.cpp Bug 1365166 - rename security.data_uri.inherit_security_context to security.data_uri.unique_opaque_origin. r=smaug, ckerschb 2017-05-23 09:02:05 +08:00
ContentPrefs.h Bug 1356414 - Add comment explaining the purpose of ContentPrefs.cpp (NPOTB, DONTBUILD) 2017-04-13 15:20:44 -07:00
ContentProcess.cpp Backed out changeset 4e283b54baa6 (bug 1358223) for build bustage on Android at dom/ipc/ContentChild.cpp:21. r=backout 2017-05-31 21:34:13 +02:00
ContentProcess.h bug 1303096 - Stop sending sync messages soon after content process start-up r=billm 2017-02-05 00:52:38 -05:00
ContentProcessManager.cpp Bug 558184 - Part 7 - Keep track of the content parent that opened a tab so that ContentProcessManager::GetTopLevelTabParent can walk up to the top level tab parent for a JS plugin tab child. r=kanru. 2017-01-16 21:15:11 +01:00
ContentProcessManager.h Bug 558184 - Part 7 - Keep track of the content parent that opened a tab so that ContentProcessManager::GetTopLevelTabParent can walk up to the top level tab parent for a JS plugin tab child. r=kanru. 2017-01-16 21:15:11 +01:00
CPOWManagerGetter.h
DOMTypes.ipdlh Backed out 4 changesets (bug 1343728) for failures in test_group_mouseevents.html a=backout 2017-06-21 17:13:49 -07:00
FilePickerParent.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
FilePickerParent.h Bug 1357846 - Introducing nsIFilePicker.displaySpecialDirectory, r=smaug 2017-04-26 18:20:19 +02:00
IdType.h
jar.mn
manifestMessages.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
MemoryReportRequest.cpp Add GPU process support to nsMemoryReportingManager. (bug 1321492 part 7, r=erahm) 2017-01-26 16:35:55 -08:00
MemoryReportRequest.h Remove PMemoryReportRequest. (bug 1321492 part 3, r=erahm) 2017-01-26 16:35:54 -08:00
MemoryReportTypes.ipdlh Move MaybeFileDesc out of PContent and into an IPDL header. (bug 1321492 part 5, r=erahm) 2017-01-26 16:35:54 -08:00
moz.build Bug 1363469 - Define signal handlers to dump and reset coverage counters. r=froydnj,kanru 2017-06-14 09:50:44 +01:00
nsIContentChild.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsIContentChild.h Bug 1363323 - Add TabGroup support to PContentBridge too. r=billm. 2017-05-02 11:57:51 +02:00
nsIContentParent.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsIContentParent.h Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
nsIHangReport.idl Bug 1358709 - Part 1: Remove nsIHangReport::GetScriptLineNo; r=billm 2017-04-24 14:15:52 -04:00
PBrowser.ipdl Backed out 4 changesets (bug 1343728) for failures in test_group_mouseevents.html a=backout 2017-06-21 17:13:49 -07:00
PBrowserOrId.ipdlh
PColorPicker.ipdl
PContent.ipdl Merge m-c to inbound, a=merge 2017-06-21 18:05:27 -07:00
PContentBridge.ipdl Bug 1359718 - Get rid of PBlob - part 2 - PBlob, r=smaug, r=kanru 2017-05-23 18:05:19 +02:00
PContentPermission.ipdlh
PContentPermissionRequest.ipdl
PCycleCollectWithLogs.ipdl
PDocumentRenderer.ipdl
PermissionMessageUtils.cpp Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
PermissionMessageUtils.h
PFilePicker.ipdl Bug 1357846 - Introducing nsIFilePicker.displaySpecialDirectory, r=smaug 2017-04-26 18:20:19 +02:00
PPluginWidget.ipdl Backed out 5 changesets (bug 1338172) for linux crashtest failures a=backout 2017-02-14 14:31:54 -08:00
PProcessHangMonitor.ipdl Bug 1362866 - Get rid of MozTabChildNotReady event and all of its required infrastructure. r=billm 2017-05-07 21:26:08 -04:00
PreallocatedProcessManager.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
PreallocatedProcessManager.h Bug 1364849 - Recycle short lived content processes. r=mrbkap 2017-05-30 13:46:41 +02:00
ProcessHangMonitor.cpp Bug 1360308 - Part 2: Use callback in CrashReporterHost::GenerateMinidumpAndPair() and up the caller chain. r=gsvelto 2017-06-22 18:52:58 +08:00
ProcessHangMonitor.h Bug 1366845 - Use XPCOM threads for hang monitor (r=mrbkap) 2017-05-24 11:11:28 -07:00
ProcessHangMonitorIPC.h Bug 1321052 - Convert ProcessHangMonitor to use endpoints. r=billm 2017-01-05 12:54:52 -08:00
ProcessPriorityManager.cpp Bug 1372317 part 2 - Replace LookupRemoveIf() calls with Lookup() + entry.Remove() where needed. r=froydnj 2017-06-18 17:07:54 +02:00
ProcessPriorityManager.h Bug 1366356 - Decrease the process priority of content processes that are not running a foreground tab - part 1 - visibility logic, r=smaug 2017-06-07 09:59:00 +02:00
PTabContext.ipdlh Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
PURLClassifier.ipdl Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00
PURLClassifierInfo.ipdlh Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00
PURLClassifierLocal.ipdl Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00
remote-test.js
ServiceWorkerConfiguration.ipdlh
StructuredCloneData.cpp Bug 1353629 - PBlob refactoring - part 3 - IPCBlob in ClonedMessageData, r=smaug 2017-04-24 12:09:40 +02:00
StructuredCloneData.h Bug 1353629 - PBlob refactoring - part 3 - IPCBlob in ClonedMessageData, r=smaug 2017-04-24 12:09:40 +02:00
TabChild.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
TabChild.h Backed out 4 changesets (bug 1343728) for failures in test_group_mouseevents.html a=backout 2017-06-21 17:13:49 -07:00
TabContext.cpp Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
TabContext.h Bug 558184 - Part 8 - Load js plugins in a separate process. r=billm. 2017-05-29 12:38:46 +02:00
TabMessageUtils.cpp
TabMessageUtils.h
TabParent.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
TabParent.h Backed out 4 changesets (bug 1343728) for failures in test_group_mouseevents.html a=backout 2017-06-21 17:13:49 -07:00
TelemetryScrollProbe.cpp Bug 1362003 - nsGlobalWindow::GetLocation doesn't need to receive an ErrorResult param, r=bz 2017-05-08 15:49:31 +02:00
TelemetryScrollProbe.h Bug 1340904 - Implement telemetry scroll tracking in C++ r=smaug 2017-03-02 00:51:40 -05:00
test.xul
URLClassifierChild.h Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00
URLClassifierParent.cpp Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00
URLClassifierParent.h Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku 2017-04-07 14:15:16 +08:00