gecko-dev/tools
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
..
bloatview
check-moz-style
coverity
docs Fixup readthedocs generation from bug 1294565. r=me 2016-10-12 14:31:14 -04:00
fuzzing Bug 1320387 - Add missing include in libfuzzer harness. r=froydnj 2016-11-28 22:12:56 +01:00
jprof
leak-gauge
lint Bug 1328565 - bump the eslint-plugin-mozilla version to ensure developers get the changes installed properly. r=bustage-fix 2017-01-05 08:49:44 +00:00
memory
memory-profiler Bug 1302448 part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap 2016-09-14 15:48:17 +02:00
mercurial Bug 1307622: Fix handling of ignored file warnings. r=Mossop 2016-10-04 22:44:50 +01:00
power Bug 1301627 - Change the name of commented variables when calling perf_event_open. r=erahm 2016-10-23 10:10:00 -07:00
profiler Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj 2017-01-05 16:34:26 +01:00
quitter
rb
rewriting Bug 1315438 - Fix the path to kiss_fft in the third party library list. r=mystor 2016-11-05 20:11:00 -04:00
update-packaging Bug 1295542 - Update packaging accordingly. r=bhearsum 2016-09-20 13:44:25 +09:00
mach_commands.py Bug 1324382 - Update mach to download clang-format 4.0 r=gps 2016-12-19 15:28:16 +01:00
moz.build