Rafael Ávila de Espíndola
59b41e200e
Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
...
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.
The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.
To force a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.
This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-02 19:26:04 -05:00
Chris Lord
a73ea11cf3
Backout bug 696376
...
This broke building on android due to requiring a newer version of unwind.h.
2011-12-02 18:00:58 +00:00
Rafael Ávila de Espíndola
b644e77f68
Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
...
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.
The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.
To for a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.
This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-01 18:22:00 -05:00
Benoit Girard
2d5f0c2f25
Bug 698002 - Initialize pthread keys on sps startup. r=jrmuizel
2011-12-01 17:40:33 -05:00
Justin Lebar
32d313639e
Back out revs 039231fd497f:5d920a44a901 properly.
2011-12-01 16:37:36 -05:00
Justin Lebar
1f25a0387f
Back out revs d445f83ecfb1:dc9cc326cad0, because they did not back out what was intended.
2011-12-01 16:35:42 -05:00
Justin Lebar
0c2bb6885e
Backed out changeset 039231fd497f (bug 705856)
2011-12-01 15:43:18 -05:00
Justin Lebar
616ab556f9
Backed out changeset 4d56e83adfb0 (bug 698002)
2011-12-01 15:43:14 -05:00
Justin Lebar
1de9d12dbd
Backed out changeset 7204e7e1d4a4 (bug 698002)
2011-12-01 15:43:11 -05:00
Jeff Muizelaar
50ab126f07
Bug 698002. Add MacOS port of the v8 profiler. r=bgirard
...
This uses a separate thread that will pause the main thread
and read the registers out of it.
2011-12-01 10:06:20 -05:00
Jeff Muizelaar
121f31a3bd
Bug 698002. Change active_ to Atomic32. r=bgirard
...
This brings us closer to V8
2011-10-31 13:25:04 -04:00
Jeff Muizelaar
d1dbe779e9
Bug 698002. Add more v8 support code. r=bgirard
...
These are needed for the mac port
2011-10-31 12:01:54 -04:00
Justin Lebar
a91cd4ab83
Bug 705856 - Enable SPS profiler on desktop Linux. r=BenWa
2011-12-01 14:45:45 -05:00
Jeff Muizelaar
28cccd9fcd
Bug 698002. Fixup architecture define typo. r=bgirard
2011-10-31 12:05:30 -04:00
Jeff Muizelaar
f794ef2700
Bug 698002. Add v8-support.h for using v8 code. r=bgirard
...
As a first step this adds a dummy implementation of the Malloced class used by
the Linux implementation.
2011-10-28 16:43:02 -04:00
Jeff Muizelaar
3cae7ebd17
Bug 698002. Move platform.cc to platform-linux.cc. r=benwa
2011-10-28 16:47:25 -04:00
Benoit Girard
e430939e5a
Bug 700754 - Add Profiler responsiveness hooks. r=ted.mielczarek
2011-11-28 00:31:59 -05:00
Benoit Girard
167877d6e2
Bug 699918 - Add a Profiler XPCOM Module. r=jmuizelaar
2011-11-04 17:07:50 -04:00
Randell Jesup
9bb8b2f1a4
Bug 693586: Add circular buffer support to jprof r=dbaron
2011-11-08 00:34:40 -05:00
Rafael Ávila de Espíndola
2ec84dccb2
Bug 696376 - If stacks_enabled is false, only walk the stack on OS X 32 bits. r=
...
dbaron.
The 64 bit stack walks lack the InCriticalRange functionality and it looks like
the extra walks are causing an orange on leaktest on the bot.
2011-11-04 09:49:48 -04:00
Rafael Ávila de Espíndola
5fe934d3ba
Bug 696281 - disable trace malloc stacks on OS X too. r=dbaron.
...
This patch disables trace malloc stacks on OS X too. To make this work,
we still have to look on the stack to decide if we must set immediate_abort,
but we can avoid other work like decoding the addresses.
2011-10-28 18:43:49 -04:00
Benoit Girard
ca1009cd75
Bug 683229 - Add user space profiling using Simple Profiler System (SPS). r=cjones r=jmuizelaar
2011-08-26 17:05:37 -07:00
Bobby Holley
4fcbac3cbf
Bug 584894 - Move libpng to media/libpng. r=khuey
2011-10-17 21:25:53 -07:00
Bobby Holley
893c28c776
Bug 584894 - Move libjpeg to media/libjpeg. r=khuey
2011-10-17 21:25:53 -07:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Randell Jesup
0d72ffe1dc
bug 691245: Fix jprof under Fedora 15 (needs -ldl) r=dbaron
2011-10-05 09:20:20 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Randell Jesup
bbf9d641de
Bug 674384: jprof - better thread support, support e10s profiling and profile-by-capture-section. r=dbaron DONTBUILD
2011-08-12 11:59:20 -04:00
Randell Jesup
d7e16ab917
Bug 664453: Stop jprof from crashing before a profile is selected on JP_START. r=dbaron DONTBUILD
2011-08-12 11:59:17 -04:00
Michael Wu
54f74f37c0
Bug 675485 - Fix PRBool misuses found in a debug build, r=bz,taras
2011-08-01 18:20:52 -07:00
Matheus Kerschbaum
200b657e7d
Bug 579571 - Remove --enable-timeline support. r=tglek
2011-07-17 12:07:42 +02:00
Ted Mielczarek
fe10be2a6e
bug 659950 - implement a much simpler pair of codesize metrics: on-disk application size + installer size. r=glandium
2011-06-28 07:55:56 -04:00
Randell Jesup
b7ce70cd87
Bug 666501: fix jprof to work in builds without run-mozilla.sh r=glandium
2011-06-24 00:01:49 -04:00
Mike Hommey
18cd2850ec
Bug 658995 part 2 - Use static destructors instead of atexit(). r=bsmedberg
2011-06-15 07:32:03 +02:00
Matt Brubeck
542052b358
Back out 6b23b52e68d6 - e92f98e8a335 (bug 632404, 552864, 658995) because of Tp4 regression.
2011-06-15 09:00:28 -07:00
Mike Hommey
fccd5731e6
Bug 658995 part 2 - Use static destructors instead of atexit(). r=bsmedberg
2011-06-15 07:32:03 +02:00
Ted Mielczarek
881e3713f8
merge m-c and b-s
2011-06-13 09:09:43 -04:00
Ed Morley
d60e3b9e7b
Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted
2011-06-12 03:49:00 -04:00
Phil Ringnalda
da291d3a25
Bug 663674 - Remove cross-commit, r=ted
2011-06-11 22:14:19 -07:00
Kyle Huey
b921e39994
Bug 662403: Fix reftest-analyzer and leak-gauge to not use removed nsIDOMFile methods. r=bz
...
DONTBUILD
2011-06-07 10:03:02 -07:00
Randell Jesup
86f5255323
Bug 660968: enabling jprof doesn't make it build the shared library anymore. r=khuey
2011-06-01 03:51:03 -04:00
Matheus Kerschbaum
370eb55bf7
Bug 648911 - Remove support for non-libxul builds. r=ted,joedrew
2011-05-23 18:54:47 +02:00
Robert Strong
d2cc6f8509
Bug 658094 - Partial updates for 5.0b1 on Mac fail. r=nrthomas
2011-05-19 10:04:06 -07:00
Randell Jesup
947a157078
Bug 653311 - Switch jprof from hand-rolled stackwalk code to glibc's backtrace() to work with modern x86 Linuxes, improve jprof output, update README - r=jim_nance (per bz)
2011-05-15 05:47:48 -04:00
Karl Tomlinson
73cec3baf7
b=647469 continue after crashes in addr2line r=dbaron
2011-05-02 08:33:16 +12:00
L. David Baron
dd0f5aa45a
Make leaksoup not print static ctor/dtor warnings.
2011-04-22 18:36:23 -07:00
Jan Küchler
8774547613
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
2011-04-07 18:04:40 -07:00
Mike Hommey
2b1a2f3670
Bug 602245 - Don't build SIMPLE_PROGRAMS during MOZ_PROFILE_GENERATE pass. r=ted
2011-04-14 11:23:13 +02:00
Robert Strong
900d0ffcfc
1. mar packaging and build changes - Bug 386760 - directory removal with software update. r=nthomas, r=khuey
2011-04-11 21:23:18 -07:00
Rail Aliiev
e74048cd49
bug 313956: expand installer .exe contents to make complete mar. r=ted
2011-04-11 12:23:26 -04:00