gecko-dev/xpcom/io
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
..
Base64.cpp Bug 1362390 - make Base64Encode tolerant of allocation failures; r=mccr8 2017-05-05 11:33:36 -04:00
Base64.h
CocoaFileUtils.h Bug 1364984 - use non-deprecated API for finding the temporary directory on OS X; r=mstange 2017-06-07 20:40:50 -04:00
CocoaFileUtils.mm Bug 1364984 - use non-deprecated API for finding the temporary directory on OS X; r=mstange 2017-06-07 20:40:50 -04:00
FileUtilsWin.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
FileUtilsWin.h
SlicedInputStream.cpp Bug 1361654 - Initializing all the member variables in SlicedInputStream, r=qdot 2017-05-04 08:36:35 +02:00
SlicedInputStream.h Bug 1355369 - SlicedInputStream must implement AsyncWait correctly, r=smaug 2017-04-12 13:49:08 +02:00
SnappyCompressOutputStream.cpp
SnappyCompressOutputStream.h
SnappyFrameUtils.cpp
SnappyFrameUtils.h
SnappyUncompressInputStream.cpp Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
SnappyUncompressInputStream.h Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
SpecialSystemDirectory.cpp Bug 1364984 - use non-deprecated API for finding the temporary directory on OS X; r=mstange 2017-06-07 20:40:50 -04:00
SpecialSystemDirectory.h Bug 1331171 - Part 1: Remove StartupSpecialSystemDirectory() workaround for Windows XP. r=jimm 2017-01-14 01:12:02 -08:00
crc32c.c
crc32c.h
moz.build
nsAnonymousTemporaryFile.cpp Bug 1346583 - Remove the PContent::Msg_OpenAnonymousTemporaryFile sync IPC; r=billm 2017-03-21 09:27:48 -04:00
nsAnonymousTemporaryFile.h
nsAppDirectoryServiceDefs.h Bug 1364050 - Part 4 - Remove references to "downloads.rdf". r=mak 2017-05-11 09:37:10 +01:00
nsAppFileLocationProvider.cpp
nsAppFileLocationProvider.h
nsBinaryStream.cpp
nsBinaryStream.h
nsDirectoryService.cpp
nsDirectoryService.h
nsDirectoryServiceAtomList.h
nsDirectoryServiceDefs.h
nsDirectoryServiceUtils.h
nsEscape.cpp Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsEscape.h Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsIAsyncInputStream.idl
nsIAsyncOutputStream.idl
nsIBinaryInputStream.idl
nsIBinaryOutputStream.idl
nsICloneableInputStream.idl
nsIConverterInputStream.idl
nsIConverterOutputStream.idl Bug 1372886 - Remove dead parameters from nsIConverterInputStream.init(). r=hsivonen 2017-06-17 19:30:09 +09:00
nsIDirectoryEnumerator.idl
nsIDirectoryService.idl
nsIFile.idl Backed out changeset c8fe57b085bd (bug 1333631) 2017-01-30 23:17:34 +01:00
nsIIOUtil.idl
nsIInputStream.idl
nsIInputStreamTee.idl
nsILineInputStream.idl
nsILocalFile.idl
nsILocalFileMac.idl
nsILocalFileWin.idl
nsIMultiplexInputStream.idl Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
nsIOUtil.cpp
nsIOUtil.h
nsIObjectInputStream.idl
nsIObjectOutputStream.idl
nsIOutputStream.idl
nsIPipe.idl
nsISafeOutputStream.idl
nsIScriptableBase64Encoder.idl
nsIScriptableInputStream.idl
nsISeekableStream.idl
nsIStorageStream.idl
nsIStreamBufferAccess.idl
nsIStringStream.idl Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
nsIUnicharInputStream.idl
nsIUnicharLineInputStream.idl
nsIUnicharOutputStream.idl Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsInputStreamTee.cpp Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
nsLinebreakConverter.cpp
nsLinebreakConverter.h
nsLocalFile.h
nsLocalFileCommon.cpp
nsLocalFileUnix.cpp Bug 1371279 - Try to use reserved stack space instead of heap allocation in nsLocalFile::GetNativeTarget(); r=froydnj 2017-06-09 01:14:16 -04:00
nsLocalFileUnix.h
nsLocalFileWin.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
nsLocalFileWin.h Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
nsMultiplexInputStream.cpp Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
nsMultiplexInputStream.h
nsNativeCharsetUtils.cpp Bug 1353593 - Part 2: Remove wwc functions. r=froydnj 2017-06-12 16:20:49 -07:00
nsNativeCharsetUtils.h
nsPipe.h
nsPipe3.cpp Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm) 2017-06-14 14:44:04 -07:00
nsScriptableBase64Encoder.cpp
nsScriptableBase64Encoder.h
nsScriptableInputStream.cpp
nsScriptableInputStream.h
nsSegmentedBuffer.cpp
nsSegmentedBuffer.h
nsStorageStream.cpp Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
nsStorageStream.h
nsStreamUtils.cpp Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm) 2017-06-14 14:44:04 -07:00
nsStreamUtils.h Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm) 2017-06-14 14:44:04 -07:00
nsStringStream.cpp Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
nsStringStream.h Backed out 6 changesets (bug 1371699) for various failures including frequent img-blobURI-2.html failures and leaks a=backout 2017-06-13 17:50:11 -07:00
nsUnicharInputStream.cpp Bug 1374580 (part 1) - Remove nsASingleFragment{,C}String typedefs. r=froydnj. 2017-06-20 19:18:17 +10:00
nsUnicharInputStream.h
nsWildCard.cpp
nsWildCard.h