Benoit Girard
e3b1bdecdd
Bug 717059 - Fix nsProfiler::GetFeatures() to handle zero length and remove warning. r=jmuizelaar
2012-01-14 10:59:09 -05:00
Jeff Muizelaar
dba7c91301
Bug 717698. Add about:jank infrastructure. r=ehsan
...
Adds a profiling mode that only records samples when we
haven't spun the event loop
2011-12-20 15:13:52 -05:00
Landry Breuil
4ac4026a1f
Bug 717769 - Include sps_sampler.h if __linux__, not XP_UNIX. r=bgirard
2012-01-14 15:32:53 -05:00
Benoit Girard
7538b61ef9
Bug 717059 - Bustage fix for android. r=bustage
2012-01-12 20:36:55 -05:00
Benoit Girard
5f742ce463
Bug 717059 - Profiler: add 'stackwalk' optional feature for Mac/Linux on profiling builds. r=ehsan
2012-01-10 18:02:00 -05:00
Benoit Girard
c8a6ef9d7f
Bug 717769 - Fix Built-in Profiler on Linux r=ehsan
2012-01-12 17:41:58 -05:00
Benoit Girard
d64f9e929e
Bug 717059. Add suppport for optional features. r=ehsan
...
This will let us detect situations where we have different features in the profiler
and choose to use them.
2012-01-12 13:33:32 -05:00
Benoit Girard
8a41ff6217
Bug 717059. Use double ms instead of float so that the types match. r=ehsan
2012-01-12 11:50:43 -05:00
Benoit Girard
50284c67e1
Bug 715618 - SharedLibrary operator= doesn't handle self assignment properly. r=matspal
2012-01-05 18:11:29 -05:00
Jeff Muizelaar
a1d87fa75a
Bug 711491. Add in conditional backtrace support. r=bgirard
...
This still needs work to be togglable at runtime and
is at best a work in progress.
--HG--
extra : rebase_source : 59f17aae034799065f5227d68693f4a5c5de3e1a
2011-12-19 20:33:00 -05:00
Jeff Muizelaar
9776a62b79
Bug 711491. Remove WriteTag. r=bgirard
...
Just use .TagToString() and fwrite that instead
of having a separate function.
--HG--
extra : rebase_source : 410d052883778de3db85d4573707b040760376ca
2011-12-16 09:12:46 -05:00
Jeff Muizelaar
8435995c3d
Bug 711491. Switch profile export to StringBuilder.
...
This should help performance some.
--HG--
extra : rebase_source : 53aa5b61e95745475283940dd8cd053c84d2bd74
2011-12-16 09:03:54 -05:00
Jeff Muizelaar
350bd02999
Bug 711491. Decide whether to get shared library info at runtime r=bgirard
...
Now that we have implementations of SharedLibraryInfo for
all platforms we don't need to build support for it conditionally.
--HG--
extra : rebase_source : d40cf1b0b28fab3ef31ab4511fc1ddda98a37a38
2011-12-16 11:54:22 -05:00
Jeff Muizelaar
5b09800c1c
Bug 711491. Rough out SharedLibraryInfo for win32. r=bgirard
...
--HG--
extra : rebase_source : 17e182c652d3eab2d083b98a9d0f5f04fc344a87
2011-12-16 10:56:06 -05:00
Jeff Muizelaar
cef64e6009
Bug 711491. Implement SharedLibraryInfo on OS X. r=bgirard
...
This is based on a patch from bug 698002.
--HG--
extra : rebase_source : ccaf8849e3b8f88bb86e895cf3a22ea289a5e94d
2011-12-15 06:56:52 -05:00
Jeff Muizelaar
a067c3405e
Bug 711491. Refactor MapInfo. r=bgirard
...
Moves MapInfo out of platform and renames it to SharedLibrary. There will
eventually be an implementation for all major platforms.
--HG--
extra : rebase_source : c7eae4bc0f0e27f2801c4e639d7dc82b47465f0b
2011-12-15 07:31:41 -05:00
Jeff Muizelaar
b4de6c4581
Bug 711491. Add a proper = operator to MapEntry. r=bgirard
...
This fixes us a bug where we weren't copying the data
properly.
--HG--
extra : rebase_source : a0331cf5d5b61c355447832119a6f7876922e190
2011-12-15 06:58:00 -05:00
Jeff Muizelaar
c2a8e75a10
Bug 711491. Port the linux backend to OS X. r=bgirard
...
This will let us use the signal based approach used
on linux on OS X. This is helpful because backtrace()
only works on the current thread.
--HG--
extra : rebase_source : 68e39af6025e5ba12f64708c453d6be3bb9f7a70
2011-12-08 17:35:36 -05:00
Ehsan Akhgari
a6373ebfc3
Bug 713278 - Teach NS_StackWalk to walk the stack of other threads too on Windows; r=dbaron
2011-12-23 18:14:09 -05:00
Jacek Caban
4d919fd3bd
Bug 712254 - Use StdInt.h in platform.h r=BenWa
...
--HG--
extra : rebase_source : 5f5fcf8fff315097638829d95594e347052955ed
2011-12-23 13:21:35 +01:00
Ehsan Akhgari
291767fb1a
Bug 713232 - Fix the hang in the built-in profiler on Windows; r=BenWa
2011-12-24 12:11:26 -05:00
Jeff Walden
d606eeadd6
Bug 711799 - Fix a few implicit-declaration warnings in trace-malloc. r=dbaron
...
--HG--
extra : rebase_source : 16fe9eb68d2db1488d89af4001e7d316cb110330
2011-12-17 22:56:55 -05:00
Matt Brubeck
347ae519fe
Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures
2011-12-19 10:43:08 -08:00
Jeff Walden
bdbd9b00ac
Bug 711799 - Fix a few implicit-declaration warnings in trace-malloc. r=dbaron
...
--HG--
extra : rebase_source : 67dc7295b8a2022e02f892f7eac74414e61b1c86
2011-12-17 22:56:55 -05:00
Jacek Caban
0e1c241639
Bug 711381 - v8-support.h fails to compile on mingw r=felipc
2011-12-19 14:05:54 +01:00
Jeff Walden
16db021217
Bug 711799 - Fix a bunch of unused-variable warnings. r=dholbert
...
--HG--
extra : rebase_source : 91fc77dca316018652d4d99f6d4cc8d0f7195e6e
2011-12-18 01:00:42 -05:00
Benoit Girard
c7c76c3daa
Bug 707185 - Programmatic control for eventtracer. r=ted.mielczarek
2011-12-04 20:53:17 -05:00
Jeff Walden
735580ff0e
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 22:54:10 -05:00
Gavin Sharp
7f25d5cbe5
Bug 696436: consolidate Mac bundle name selection, and allow adding a prefix to it at build time, r=dolske, r=ted relanding with a clobber on a CLOSED TREE
2011-10-27 10:27:56 -07:00
Blair McBride
6c81afa75a
Backout 9e94c7b5290f (bug 696436) due to Mac opt breakage. CLOSED TREE
2011-12-16 16:08:48 +13:00
Gavin Sharp
e8b9ec60db
Bug 696436: consolidate Mac bundle name selection, and allow adding a prefix to it at build time, r=dolske, r=ted
...
--HG--
extra : rebase_source : 138e3b0259bb144524b1bdb8a6db9d83fe527c71
2011-10-27 10:27:56 -07:00
Justin Lebar
150b02de4b
Bug 705856 - Enable SPS profiler on desktop Linux. r=BenWa
...
--HG--
extra : rebase_source : 1b47cb9924451b7a581f440a3df9d9a4fdf4c0ec
2011-12-15 15:44:13 -05:00
Ehsan Akhgari
0086df097c
Bug 703444. Port SPS profiler to Windows. r=jmuizelaar
...
Some changes and fixes by Felipe Gomes. r=benwa,ehsan
2011-12-04 14:09:00 -05:00
Jeff Muizelaar
9317a91431
Bug 707800. Add more sampler labels. r=bgirard
2011-12-02 17:05:33 -05:00
Jeff Muizelaar
aaa89e552f
Bug 708629. Avoid using uninitialized pkey_stack. r=bgirard
...
This was causing crashes with make check/xpcshell on OS X.
2011-12-08 10:46:02 -05:00
Jeff Muizelaar
07c8f896ad
Bug 707800. Rename SAMPLE_CHECKPOINT to SAMPLE_LABEL. r=bgirard
...
Checkpoint was never a good name.
2011-12-02 17:18:26 -05:00
Chris AtLee
8d01aa9835
Bug 481815: makefile hooks required for signing executable files, installer packages, and mars. r=ted
...
--HG--
extra : rebase_source : 7b696910865fdbc9191cb7511f558879a9b9e05d
2011-12-07 17:06:52 -05:00
Benoit Girard
d1076777c3
Bug 699918 - Implement profiler module. r=jmuizelaar
2011-12-07 14:48:15 -05:00
Jeff Muizelaar
47f2748179
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.
--HG--
extra : rebase_source : c73c866d513c054326af117ddf31ce05eca61335
2011-12-01 10:06:20 -05:00
Jeff Muizelaar
2495be7b87
Bug 698002. Change active_ to Atomic32. r=bgirard
...
This brings us closer to V8
--HG--
extra : rebase_source : 788692e354a6cedbb5d54ed95cd8a5458e90bc60
2011-10-31 13:25:04 -04:00
Jeff Muizelaar
9d4874eb4d
Bug 698002. Add more v8 support code. r=bgirard
...
These are needed for the mac port
--HG--
extra : rebase_source : 6f92738210ef2dbcfbaafb4ff2582c0f45b89d98
2011-10-31 12:01:54 -04:00
Rafael Ávila de Espíndola
001dce7e90
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.
--HG--
extra : rebase_source : bba4ac9e3378c88f7037aa884511e473a57121f6
2011-12-02 19:26:04 -05:00
Chris Lord
b6c8db3dc8
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
083918d344
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
139318225c
Bug 698002 - Initialize pthread keys on sps startup. r=jrmuizel
...
--HG--
extra : rebase_source : 226f0ec8cd0c79ebaa1f00eba643ad0e28f240e5
2011-12-01 17:40:33 -05:00
Justin Lebar
c19dff8b5d
Back out revs 039231fd497f:5d920a44a901 properly.
2011-12-01 16:37:36 -05:00
Justin Lebar
02b09fb494
Back out revs d445f83ecfb1:dc9cc326cad0, because they did not back out what was intended.
2011-12-01 16:35:42 -05:00
Justin Lebar
12d68d2a65
Backed out changeset 039231fd497f (bug 705856)
2011-12-01 15:43:18 -05:00
Justin Lebar
cc03824263
Backed out changeset 4d56e83adfb0 (bug 698002)
2011-12-01 15:43:14 -05:00
Justin Lebar
a147fddae0
Backed out changeset 7204e7e1d4a4 (bug 698002)
2011-12-01 15:43:11 -05:00