gecko-dev/dom/indexedDB
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
..
crashtests
test Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
ActorsChild.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
ActorsChild.h Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv 2017-06-07 13:55:00 +08:00
ActorsParent.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
ActorsParent.h
FileInfo.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
FileInfo.h
FileManager.h Bug 1311057 - Part 2: Remove isApp from quota manager and its clients; r=asuth 2017-03-06 18:38:42 +01:00
FileSnapshot.cpp Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +02:00
FileSnapshot.h Bug 1336091 - File.relativeWebkitPath should not start with '/', r=smaug 2017-02-06 11:07:54 +01:00
IDBCursor.cpp
IDBCursor.h
IDBDatabase.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
IDBDatabase.h Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBEvents.cpp Bug 1287006 - Don't pass Nullable by value in various places, rather by const&. r=bz 2017-02-13 09:07:40 -08:00
IDBEvents.h Bug 1287006 - Don't pass Nullable by value in various places, rather by const&. r=bz 2017-02-13 09:07:40 -08:00
IDBFactory.cpp Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBFactory.h Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBFileHandle.cpp Bug 1370519 - Part 2: Merge FileHandle base classes with IndexedDB specific classes (except parent actors); r=btseng 2017-06-07 12:36:42 +02:00
IDBFileHandle.h Bug 1370519 - Part 2: Merge FileHandle base classes with IndexedDB specific classes (except parent actors); r=btseng 2017-06-07 12:36:42 +02:00
IDBFileRequest.cpp Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv 2017-06-07 13:55:00 +08:00
IDBFileRequest.h Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv 2017-06-07 13:55:00 +08:00
IDBIndex.cpp Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +02:00
IDBIndex.h
IDBKeyRange.cpp Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv 2017-06-07 13:55:00 +08:00
IDBKeyRange.h Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv 2017-06-07 13:55:00 +08:00
IDBMutableFile.cpp Bug 1370519 - Part 2: Merge FileHandle base classes with IndexedDB specific classes (except parent actors); r=btseng 2017-06-07 12:36:42 +02:00
IDBMutableFile.h Bug 1370519 - Part 2: Merge FileHandle base classes with IndexedDB specific classes (except parent actors); r=btseng 2017-06-07 12:36:42 +02:00
IDBObjectStore.cpp Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +02:00
IDBObjectStore.h
IDBRequest.cpp Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBRequest.h Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBTransaction.cpp Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBTransaction.h Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08:00
IDBWrapperCache.cpp
IDBWrapperCache.h
IndexedDatabase.h
IndexedDatabaseInlines.h
IndexedDatabaseManager.cpp Bug 1311057 - Part 2: Remove isApp from quota manager and its clients; r=asuth 2017-03-06 18:38:42 +01:00
IndexedDatabaseManager.h
Key.cpp
Key.h
KeyPath.cpp Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +02:00
KeyPath.h
moz.build Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt 2017-03-01 08:20:25 -05:00
PBackgroundIDBCursor.ipdl Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv 2017-05-23 07:50:33 +02:00
PBackgroundIDBDatabase.ipdl Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv 2017-05-23 07:50:33 +02:00
PBackgroundIDBDatabaseFile.ipdl
PBackgroundIDBDatabaseRequest.ipdl
PBackgroundIDBFactory.ipdl
PBackgroundIDBFactoryRequest.ipdl
PBackgroundIDBRequest.ipdl Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv 2017-05-23 07:50:33 +02:00
PBackgroundIDBSharedTypes.ipdlh Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv 2017-05-23 07:50:33 +02:00
PBackgroundIDBTransaction.ipdl
PBackgroundIDBVersionChangeTransaction.ipdl Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv 2017-05-23 07:50:33 +02:00
PBackgroundIndexedDBUtils.ipdl
PermissionRequestBase.cpp
PermissionRequestBase.h
PIndexedDBPermissionRequest.ipdl
ProfilerHelpers.h Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange. 2017-06-22 13:40:21 +10:00
ReportInternalError.cpp Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj 2016-12-14 09:32:21 -07:00
ReportInternalError.h Bug 1339826 - Part 2: Warn if a maintenance finishes with an error; r=btseng 2017-04-28 17:42:53 +02:00
ScriptErrorHelper.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
ScriptErrorHelper.h Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +02:00
SerializationHelpers.h