gecko-dev/netwerk/cache2
Markus Stange 4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
..
AppCacheStorage.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
AppCacheStorage.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
CacheEntry.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheEntry.h Bug 1231565 - (Part 2) Allow storing alternate data in the HTTP cache r=honzab 2016-04-11 05:17:02 +02:00
CacheFile.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFile.h Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal 2016-11-10 16:14:34 +01:00
CacheFileChunk.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFileChunk.h Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
CacheFileContextEvictor.cpp Bug 1291347 - Make CacheFileContextEvictor::EvictEntries shutdown aware, r=honzab 2016-08-09 20:29:40 +02:00
CacheFileContextEvictor.h Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal 2015-10-22 12:11:00 +02:00
CacheFileIOManager.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFileIOManager.h Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-08 21:11:30 +01:00
CacheFileInputStream.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFileInputStream.h Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
CacheFileMetadata.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFileMetadata.h Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
CacheFileOutputStream.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheFileOutputStream.h Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
CacheFileUtils.cpp Bug 1320402 - Move url-classifier off of using appIds. r=ehsan, gcp 2017-01-03 14:21:58 +08:00
CacheFileUtils.h Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
CacheHashUtils.cpp Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-08 21:11:30 +01:00
CacheHashUtils.h Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-08 21:11:30 +01:00
CacheIOThread.cpp Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj 2017-01-05 16:34:26 +01:00
CacheIOThread.h Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal 2016-11-10 16:14:34 +01:00
CacheIndex.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
CacheIndex.h Bug 1320894 - Fixed serialization of cache index, r=valentin 2016-12-02 16:21:35 +01:00
CacheIndexContextIterator.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
CacheIndexContextIterator.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
CacheIndexIterator.cpp Bug 1249304 - Optimize sorting of CacheIndex::mFrecencyArray, r=honzab 2016-10-06 11:23:52 +02:00
CacheIndexIterator.h Bug 1249304 - Optimize sorting of CacheIndex::mFrecencyArray, r=honzab 2016-10-06 11:23:52 +02:00
CacheLog.cpp Bug 1275744 - Reference MOZ_LOG in netwerk comments. r=erahm 2016-05-25 16:13:54 -07:00
CacheLog.h bug 1219466 - convert netwerk to LazyLogModule r=valentin.gosu 2015-11-02 23:35:29 -05:00
CacheObserver.cpp Bug 1237152 - rename clear-origin-data to clear-origin-attributes-data, r=smaug 2016-10-07 17:45:10 +08:00
CacheObserver.h Bug 1288204 - Use CancelSynchronousIo Win32 function to cancel blocking I/O on the HTTP cache thread. r=michal 2016-08-10 10:50:00 -04:00
CacheStorage.cpp Bug 1271019 - Don't call on nsIURI on non-main threads from HTTP cache back end. r=michal 2016-05-12 06:38:00 -04:00
CacheStorage.h Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal 2015-10-22 12:11:00 +02:00
CacheStorageService.cpp Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal 2016-11-10 16:14:34 +01:00
CacheStorageService.h Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal 2016-11-10 16:14:34 +01:00
OldWrappers.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
OldWrappers.h Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
nsICacheEntry.idl Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal 2016-11-10 16:14:34 +01:00
nsICacheEntryDoomCallback.idl
nsICacheEntryOpenCallback.idl
nsICacheStorage.idl Bug 1244122 P1 Always support SW intercept even when http cache is disabled. r=mayhemer 2016-02-02 10:03:20 -08:00
nsICacheStorageService.idl Bug 1032254 - Generic way to pin reasource in the HTTP cache, r=michal 2015-10-22 12:11:00 +02:00
nsICacheStorageVisitor.idl Bug 1206060 - Show pinning status at about:cache. r=michal 2015-10-30 08:12:00 +01:00
nsICacheTesting.idl Bug 1231565 - (Part 1) Basic test for alt-data representation in cache r=honzab 2016-03-22 11:42:00 +01:00