Граф коммитов

3089 Коммитов

Автор SHA1 Сообщение Дата
Brian Smith 9a21ea4912 Bug 794510: Part 6 - Fixups needed to build on Windows and Android and Mac OS X debug, plus shorten comment to be less than 80 columns; r=ehsan 2012-10-18 15:55:48 -04:00
Isaac Aggrey c984edf823 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Benoit Girard 10dd5e6f78 Bug 802333 - Reduce the default profile size for ARMv6 devices. r=blassey 2012-10-18 11:12:53 -04:00
Benoit Girard 828e28e911 Bug 799638 - Export profiler markers when saving profiler profiles. r=ehsan 2012-10-15 10:33:20 -04:00
Benoit Girard a0793a7600 Bug 799638 - Use stackwalk on startup profiling for win/mac. r=ehsan
--HG--
extra : rebase_source : 67b8b37cbb4c013a7bb81f318d7975dece23c76e
2012-10-14 12:08:11 -04:00
Nicholas Nethercote 3ee916ea11 Bug 800703 - Rename the existing, Valgrind-based DMD as "DMDV". r=khuey.
--HG--
rename : xpcom/base/dmd.h => tools/dmdv/dmdv.h
2012-10-08 15:31:17 -07:00
Ryan VanderMeulen 47fa9fb9a8 Backed out a57ade621efb, 2a8fef2bd228, 632ce3e7d3ef (bug 799638) for bustage. 2012-10-13 21:22:30 -04:00
Benoit Girard a1a3207ba8 Bug 799638 - Export profiler markers when saving profiler profiles. r=ehsan 2012-10-13 21:03:22 -04:00
Benoit Girard 854205b9ae Bug 799638 - Use stackwalk on startup profiling for win/mac. r=ehsan 2012-10-13 21:03:09 -04:00
Andrew Quartey 00edc52f9c Bug 792581 - part 19: Replace LL_I2L macro with int64_t cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey da3cde276e Bug 792581 - part 17: Replace LL_L2F macro with a double cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey 3ca8d029a6 Bug 792581 - part 16: Replace LL_L2UI macro with uint32_t cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey ea5e17dc9c Bug 792581 - part 15: Replace LL_L2I macro with int32_t cast. r=ehsan 2012-10-12 13:29:10 -04:00
Mike Hommey cfde56bf95 Bug 797717 - Initialize SPS in NS_InitXPCOM2 to make JS sampling work in xpcshell. r=benwa 2012-10-06 10:37:45 +02:00
Rafael Ávila de Espíndola d42b777f5e Bug 798429 - Add new talos test names. r=jhammel. 2012-10-05 13:06:34 -04:00
Andrew Quartey 58aa97ec8b Bug 792581 - part 12: Replace LL_DIV with division operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey d371ac7c39 Bug 792581 - part 11: Replace LL_MUL macro with multiplication operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey 6a3e28f73b Bug 792581 - part 10: Replace LL_SUB macro with mathematical minus operator. r=ehsan 2012-10-05 01:05:27 -04:00
Andrew Quartey ceaa3c8f60 Bug 792581 - part 9: Replace LL_ADD with mathematical plus operator. r=ehsan 2012-10-05 01:05:27 -04:00
Andrew Quartey ee41e61a85 Bug 792581 - part 6: Replace LL_UCMP macro with standard comparison. r=ehsan 2012-10-03 10:13:19 -04:00
Andrew Quartey fe71f25457 Bug 792581 - part 3: Replace LL_NE macro with standard relation. r=ehsan 2012-10-03 10:13:18 -04:00
Benoit Girard 484edc0107 Bug 794206 - Initialize mRuntime. r=ehsan 2012-10-01 12:51:03 -04:00
Isaac Aggrey 00ccc3bc2e Bug 795507: Remove usage of PR_BEGIN_EXTERN_C and PR_END_EXTERN_C; r=ehsan 2012-09-30 21:10:22 -05:00
Chris Jones 709a2de970 Bug 791404: Sample at 10ms on gonk for more realistic results. r=BenWa 2012-09-24 15:38:07 -07:00
Chris Jones a52035c732 Bug 791399: Use the OS tmp dir for saving files on b2g, because content processes can't write elsewhere. r=BenWa 2012-09-24 15:38:07 -07:00
Chris Jones 1bd51be155 Bug 791398: Lower the default sample size to prevent OOMs. r=BenWa 2012-09-24 15:38:07 -07:00
Mike Hommey 9c64ee8bff Bug 790593 - Notify when the profiler starts and stops through the observer service. r=ehsan 2012-09-20 19:36:50 +02:00
Jeff Muizelaar 356c1623e6 Bug 789717. Use JS_InternStringN to avoid large memory usage in the profiler. r=ehsan
We duplicate a large number of strings. This helps cut down on that.

--HG--
extra : rebase_source : 897b54343ab44f23402a247eeda836f066fbb49a
2012-09-17 14:22:47 -04:00
Makoto Kato 6025716d17 Bug 785321 - Replace PRUptrdiff with uintptr_t, prtdiff_t or etc; r=ehsan,jrmuizel 2012-09-14 16:09:52 -04:00
Mike Hommey d226944fab Bug 790261 - Avoid the profiler misbehaving randomly when mozilla_sampler_start is given impossible values. r=Benwa 2012-09-11 17:33:53 +02:00
Rafael Ávila de Espíndola 359398129c Bug 786504 - Add a simple script to compare test runs in two revisions. r=jhammel. 2012-09-10 17:36:01 -04:00
Nick Thomas 414db18df9 Bug 770996, force firefox binary on Mac so that partner builds can use partials, r=catlee NPOTB 2012-09-07 11:57:28 +12:00
Benoit Girard ae77288478 Bug 788888 - Increase the default profile size to 1 million entries. r=ehsan 2012-09-06 01:21:03 -04:00
Benoit Girard 68799153ea Bug 788400 - Part 2: Add a frame number to profiles. r=ehsan 2012-09-05 11:45:17 -04:00
Mike Hommey 7b1f9d3c0d Bug 749518 - Don't use dl_iterate_phdr on gonk. r=BenWa 2012-09-04 10:59:01 +02:00
Benoit Girard bdf8472a06 Bug 749518 - Forward declare dl_iterate_phdr with extern C. r=glandium 2012-09-04 10:24:16 -04:00
Benoit Girard 47ce0d2788 Bug 749518 - Use dl_iterate_phdr instead of proc/maps for Linux symbolicate. r=glandium 2012-08-30 11:48:35 -04:00
Ed Morley 910eed757d Backout a8b73286ba78 (bug 749518) for breaking B2G gb_armv7a_gecko builds 2012-09-03 12:10:10 +01:00
Randell Jesup 65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Benoit Girard 098210b839 Bug 749518 - Use dl_iterate_phdr instead of proc/maps for Linux symbolicate. r=glandium 2012-08-30 11:48:35 -04:00
Luke Wagner ad90af9ca5 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Ehsan Akhgari e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Rafael Ávila de Espíndola 56d1a6d649 Bug 783154 - Refactor the chrome hang code to use the same class as write poisoning. r=taras,benwa,vladan.
--HG--
extra : rebase_source : 1f43ac88ceabc698ba0a58715562db90af1c266f
2012-08-21 17:14:38 -04:00
Alex Crichton 3482931144 Bug 778979 - Part 5: Expose the line number in the JSON output of SPS. r=ehsan 2012-08-10 16:43:30 -07:00
Alex Crichton 9cb624c1fe Bug 778979 - Part 2: Change SPS's StackEntry to inherit from js::ProfileEntry and add a line number. r=ehsan 2012-08-10 16:42:54 -07:00
Rafael Ávila de Espíndola 9c483afff4 Bug 780272 - Audit calls to MozillaUnRegisterDebugFD. r=jlebar.
--HG--
extra : rebase_source : 53672602bfd370626916bcd0f5bc71859f8520c2
2012-08-10 12:40:21 -04:00
Ms2ger 75ab7efb95 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Mike Hommey 6a5b86abf8 Bug 777379 - Ensure that default is always the default target. r=ted 2012-08-08 09:33:16 +02:00
Mike Hommey 70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Rafael Ávila de Espíndola d52e2f827c Bug 778167 - Fix the offset of OS X libraries. r=bgirard. 2012-07-30 11:06:37 -04:00
Aryeh Gregor d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Jeff Muizelaar 83fa3e04da Bug 777032. Add support for high resolution profiling on win32. r=ehsan.
The default sleep time on windows is 15.6ms. This is insufficient for our
profiling needs. Use timeBeingPeriod to adjust this when necessary.

--HG--
extra : rebase_source : 0fae6fc052a3eaa94e60e92e68998bf2e6328516
2012-07-26 12:02:48 -04:00
Benoit Girard 916691bb6f Bug 774978 - Profiler saving restored to /sdcard because most appfolder are read protected. r=glandium 2012-07-24 13:29:59 -04:00
Ehsan Akhgari 3c50675f87 Remove the unused variable (no bug) 2012-07-19 00:45:35 -04:00
Ehsan Akhgari fc6b30fa6d Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (tools/profiler parts); blanket-r=bzbarsky 2012-07-19 00:42:48 -04:00
Alex Crichton 00703ab27b Bug 772078 - Remove JS entries even when stopping the SPS profiler. r=luke 2012-07-11 16:23:52 -07:00
Benoit Girard 5ce60d5ee5 Bug 772715 - Use JSON instead of string profiles on mobile. r=ehsan,sfink
--HG--
extra : rebase_source : c3c2224d130580df6aea310a24532c0321ea9a09
2012-07-11 15:36:04 -04:00
Mike Hommey e635e916a5 Fixup for bug 771103. r=bgirard 2012-07-11 17:28:04 +02:00
Mike Hommey e29d706a4a Bug 771103 - Allow to start the profiler with a signal on Android. r=bgirard,r=blassey 2012-07-11 16:55:22 +02:00
Benoit Girard e25a726e82 Bug 772630 - Deay JS profiling until we have a JSRuntime. r=ehsan,acrichton 2012-07-10 22:05:38 -04:00
Benoit Girard c8f0c7a400 Bug 766579 - Part 2: Intertwine during sampling. r=jmuizelaar
--HG--
extra : rebase_source : e2ddcc188fcd6a2b3b6c35d3517fb7ec8ae7deab
2012-06-27 19:04:58 -04:00
Benoit Girard 325b77e999 Bug 766579 - Part 1: Add SP param to NS_StackWalk. r=dbaron
--HG--
extra : rebase_source : dd4905ffadf5fe9327449fffdfbc665b05d74a6a
2012-06-27 16:08:21 -04:00
Mike Hommey 7579c29646 Bug 771056 - Use NS_OS_TEMP_DIR to save SPS profile data. r=bgirard 2012-07-10 09:26:57 +02:00
Mike Hommey b77b1b565b Bug 771110 - Properly log the file name under which profile data is saved. r=bgirard 2012-07-09 12:48:27 +02:00
Alex Crichton 4fb5d45af9 Bug 761261 - Add JS profiling to SPS (r=luke,ehsan)
--HG--
extra : rebase_source : 328a82697aa9a9f63d18c7a30a813f436e163922
2012-06-20 17:58:55 -07:00
Benoit Girard 5f989addb3 Bug 771608 - Fix a crash when saving a text profile; r=ehsan 2012-07-06 16:40:10 -04:00
Ehsan Akhgari 982e6b357d Bug 767338 - Increment the module's refcount and ensure the validity of its base address in the virtual address space before attempting to read its PDB info to make sure that it doesn't get unloaded too soon; r=vladan 2012-07-01 14:47:20 -04:00
Benoit Girard 0578b57267 Bug 769989 - Store time information in each sample. r=jmuizelaar 2012-07-05 15:49:19 -04:00
Benoit Girard 6387987cb2 Bug 769963 - Record responsiveness in jank mode. r=jmuizelaar 2012-07-05 15:47:20 -04:00
Vladimir Vukicevic 8b0cc30abf b=768598, [profiler] save LR register on ARM Android, for some additional syscall info, r=bgirard 2012-07-04 11:25:15 -04:00
Rafael Ávila de Espíndola bc46f77176 Bug 732173 - poison write during shutdown in a debug build. r=ted.
With this patch we now patch the write functions during shutdown in a debug
build and abort if a non white listed write is found.
2012-07-03 09:15:34 -04:00
Benoit Girard af83f12073 Bug 707308 - Support dynamic stack labels for profile. r=jmuizelaar
--HG--
extra : rebase_source : 6960978d26a056ab2d581e23b024e3a2f5bc3e60
2012-06-20 19:22:02 -04:00
Benoit Girard c2c857e7cf Bug 767844 - Store meta data in profile. r=jrmuizel
--HG--
extra : rebase_source : 06aeaf36666fa293f688aa9b0d6d8e9772874eb4
2012-06-26 23:43:28 -04:00
Benoit Girard 7eb7100728 Bug 707308 - Add Dynamic profiling labels. r=jmuizel,ehsan
--HG--
extra : rebase_source : 1a72148342e7a71de62230ac2ca3a283724e4bbd
2012-06-26 23:25:14 -04:00
Benoit Girard f685dd07d9 Bug 765357 - Add xpcshell tests for the Profiler. r=ehsan 2012-06-26 17:57:43 -04:00
Benoit Girard 154e0a6996 Backout 493781e75ced (Bug 765357) 2012-06-25 19:23:25 -04:00
Benoit Girard 4383c6a1a5 Bug 765357 - Add xpcshell tests for the Profiler. r=ehsan 2012-06-25 16:49:41 -04:00
Benoit Girard 98d50538d1 Backout 746513dca667 (Bug 765357) due to xpcshell orange (linux, mac). 2012-06-24 21:00:21 -04:00
Benoit Girard c2e6a63cb6 Bug 765357 - Add xpcshell tests for the Profiler. r=ehsan 2012-06-24 18:53:36 -04:00
Daniel Holbert 09bf6bfeea Bug 764616: Fix constructor out-of-order constructor init-list in Gecko profiler, to silence build warning. r=benwa 2012-06-13 16:24:48 -07:00
Makoto Kato cb3e90214d Bug 761912 - add VS11 debug dll to trace malloc. r=dbaron 2012-06-06 14:45:45 +09:00
Ehsan Akhgari 6227c72e6a Bug 758890 - Destroy the TableTicker object when the profiler is stopped; r=BenWa 2012-05-31 19:38:49 -04:00
Benoit Girard f0f6913bfd Bug 759532 - [Backout] Expose Enter/ExitProfileLabel to JS. r=ehsan 2012-05-30 15:59:08 -04:00
Benoit Girard 7e3b302b27 Bug 759532 - Expose Enter/ExitProfileLabel to JS. r=ehsan
--HG--
extra : rebase_source : e1dbc7995ce2dfd52ece4c3fd3d76cc6cd95896f
2012-05-30 12:47:19 -04:00
Gervase Markham 68d38d677f Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Mike Hommey 27e941762a Bug 756965 - Allow mozilla::ThreadLocal to store integer types smaller than, or as large as, a pointer. r=Waldo 2012-05-22 08:43:55 +02:00
Benoit Girard d0a202d9a0 Bug 750989 - Pause Profiler during saving. r=mstange,jrmuizel
--HG--
extra : rebase_source : e1a6623d2a0de80423efb76c5b35e7734b119635
2012-05-18 17:03:10 -04:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ehsan Akhgari 718d5656f8 Bug 755904 - Rename the pkey_xxx variables; r=BenWa 2012-05-16 17:20:06 -04:00
Ehsan Akhgari 327c5136de Bug 753119 - Add ThreadLocal to mfbt - r=jwalden
... because nobody likes to use the NSPR TLS support.
2012-05-09 16:54:33 -04:00
Mike Hommey fe881f4ebe Bug 748001 - Use explicit targets for object files. r=ted 2012-05-15 07:44:32 +02:00
Landry Breuil da094a085a bug 749678 - inconditionally export thread_helper.h, gfx/gl requires it - r=bjacob
This is a VERY TEMPORARY fix until bug 753119 lands. The only reason why it's acceptable
is that bug 753119 will take it out very soon. Non-profiler code should not use profiler headers.
2012-05-11 07:55:39 -04:00
Michael Wu aeb32f9cf9 Bug 753039 - Error building gonk on OSX due to dont_build_docs.sh, r=ehsan 2012-05-09 14:30:22 -07:00
Nathan Froyd 38fd6d3529 Bug 744444 - Part 3: delete CPP_PROG_LINK; r=ted 2012-04-12 16:58:11 -04:00
Michael Wu f3ca0d61d3 Backed out changeset 688c0eedab28 for red, r=red 2012-05-08 14:14:51 -07:00
Michael Wu 2686deecfe Bug 753039: Error building gonk on OSX due to dont_build_docs.sh; r=ehsan 2012-05-08 13:49:27 -07:00
Benoit Girard e2f0231564 Bug 753041 - Fix 32-bit address sign extension in the Gecko Profiler. r=jmuizelaar
--HG--
extra : rebase_source : 1df7f91afc3572bf529a390d3e15a206b6dcedb9
2012-05-08 15:38:11 -04:00
Benoit Jacob b97eec9c6c Bug 749678 - 2/5 - add include guards to thread_helpers.h - r=ehsan 2012-05-08 09:47:34 -04:00
Mike Hommey 83278f08e3 Bug 751072 - Remove tools/profiler/libunwind/src/autom4te.cache. r=ted 2012-05-07 14:13:10 +02:00
Benoit Girard 5073323906 Bug 751779 - Enable leaf address profiling with the gecko profiler on windows. r=jmuizelaar 2012-05-04 15:33:35 -04:00
Benoit Girard 4e336e29cc Bug 751779 - Enable leaf address profiling with the gecko profiler on mac. r=jmuizelaar 2012-05-03 21:23:27 -04:00
Joey Armstrong 6bf8cf559d Bug 739710 - Makefile.in edits to use mkdir_deps function: file batch #2. r=ted 2012-05-03 06:22:33 -04:00
Mike Hommey 2f50458bc1 Bug 750290 - Remove tools/leaky. r=dbaron 2012-04-30 18:17:46 +02:00
Mike Hommey f034ce66d3 Bug 750267 - Remove tools/elf-dynstr-gc. r=ted 2012-04-30 18:17:44 +02:00
Benoit Girard 3f35cb1bcb Bug 747408 - Increase default sampling rate to 1ms for profiling fennec. r=jmuizelaar a=akeybl 2012-04-20 11:31:09 -04:00
Jeff Muizelaar 00409b37a6 Bug 745864 - make SAMPLE_LABELS per line instead of per independent scope. r=bgirard a=blassey
--HG--
extra : rebase_source : 1d09f95da1677e9d13932017894f443d02aa40af
2012-04-17 16:21:23 -04:00
Ehsan Akhgari bf6e80e313 Bug 735262 - Fix the compilation error on profiling builds; r=me a=npotb 2012-04-18 12:55:48 -04:00
Jeff Muizelaar d9feb65b18 Bug 739510. JSObjectBuilder: Speed up construction of char * properties. r=ehsan
This eliminates two additional copies: NS_ConvertASCIItoUTF16 and
PromiseFlatString by constructing the JSString directly. It is also designed so
that literal strings will have their strlen computed at compile time.

--HG--
extra : rebase_source : 05169480e6ffbf42a9f5cc131dc775c699841b19
2012-03-26 23:35:28 -04:00
L. David Baron e072f851f5 Fix compilation error by fixing up more code. (Bug 735262) r=jrmuizel 2012-04-16 15:32:11 -07:00
Benoit Girard 0c48158611 Bug 745556 - Include shared library info in text profile dump for android symbolication. r=jmuizelaar 2012-04-16 09:32:18 -04:00
Jeff Muizelaar 4b50b945c5 Bug 735262. Make leaf address printing saner. r=bgirard
We don't need to store an mLeafAddress field for each profile entry.
Instead just add a 'l' tag for the leaf entries.

--HG--
extra : rebase_source : e8e578d000a672f8d198541b4c00ff8ab570d95e
2012-04-13 14:56:51 -04:00
Benoit Girard 795e91d42a Bug 719536 - Expose shared library offsets for proper symbolication. r=jmuizelaar 2012-04-13 16:33:53 -04:00
Jeff Muizelaar e9d9575eba Backout acefe9a94a63 - Bug 735262 because of B2G breakage. 2012-04-13 14:55:13 -04:00
Jeff Muizelaar 9c450cf671 Bug 735262. Make leaf address printing saner. r=bgirard
We don't need to store an mLeafAddress field for each profile entry.
Instead just add a 'l' tag for the leaf entries.
2012-04-10 11:48:55 -04:00
Ye Kaiqi 6bd5741dbb Bug 739072 - Change spelling error "thoes" to "those". r=coop 2012-04-09 18:30:34 -04:00
Brian Smith 1894f363b5 Bug 736898: Avoid signed/unsigned comparisons in tools/profiler, r=bgirard
--HG--
extra : rebase_source : 53eadd48e29fc1aae143b0480bcb573a392e1130
2012-04-04 18:56:25 -07:00
Vladan Djeric ceb0b3db89 Bug 741242 - Fix profiler address output broken by bug 739800 on Mac 64 bit. r=bgirard 2012-04-02 14:34:39 -04:00
Vladan Djeric d3601149fe Bug 739800 - Force all profiler l-tag addresses to have a 0x prefix. r=bgirard 2012-03-28 19:01:13 -04:00
Vladan Djeric 647b851310 Bug 735829 - Very minor fix: add quotes around PDB name string 2012-03-26 22:02:46 -04:00
Ehsan Akhgari ce74f02c9f Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
2012-03-16 14:08:03 -04:00
Markus Stange 38ac2ed1e9 Bug 733861 - Use std::ostreams for profile stringification. r=BenWa 2012-03-23 20:09:27 +01:00
Ehsan Akhgari 196b2bd064 Backout changeset 11b6f37603ce (bug 734302) for Android bustage 2012-03-23 15:01:14 -04:00
Ehsan Akhgari a2a9c23ea0 Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
2012-03-16 14:08:03 -04:00
Marco Bonardo 2b24ab86ca Merge last green PGO from inbound to central 2012-03-23 12:49:57 +01:00
Marco Bonardo 2cd9fb00fc Merge central to inbound 2012-03-23 02:02:03 +01:00
Ehsan Akhgari aa4812e1a1 Bug 734302 - Part 4: Fix the profiling builds on Mac and Windows; r=BenWa 2012-03-22 12:36:45 -04:00
Ryan VanderMeulen 09ebc9706d Backout f42ea2a158e4(bug 733861) due to build bustage on all platforms. 2012-03-22 19:10:16 -04:00
Markus Stange d306834e3e Bug 733861 - Use std::ostreams for profile stringification. r=BenWa 2012-03-22 23:40:33 +01:00
Markus Stange ba9d8ddfb3 Bug 731272 - Add the current instruction to the top of the stack. r=jrmuizel 2012-03-22 23:31:56 +01:00
Markus Stange 7199a538ab Bug 731272 - Don't skip the topmost stack frame. r=jrmuizel 2012-03-22 23:30:37 +01:00
Ehsan Akhgari 14c2f2120c Bug 738302 - Avoid building the libunwind docs so that b2g can be built again; r=BenWa 2012-03-22 17:39:00 -04:00
Matt Brubeck 304bd6c03e Back out c61855cb4558 (bug 734302) because of build failure on Android
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml.in => mobile/android/base/resources/menu-v11/gecko_menu.xml
rename : mobile/android/base/resources/menu/gecko_menu.xml.in => mobile/android/base/resources/menu/gecko_menu.xml
2012-03-21 16:26:38 -07:00
Serge Gautherie 965cd4527e Bug 712552. (Av1) Remove MSVC6 support from trace-malloc. r=dbaron.
DONTBUILD (comment-only).
2012-03-23 02:58:24 +01:00
Ehsan Akhgari 29d313feed Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
extra : rebase_source : 9a4499ff99d661924e1eb09280925ad123ecd948
2012-03-16 14:08:03 -04:00
Ehsan Akhgari 9aac7ab107 Bug 734302 - Part 2: Import the source code of libunwind
--HG--
extra : rebase_source : 2c2343ed6300b8265285179d24f9a4b0c16fc977
2012-03-09 12:42:25 -05:00
Ehsan Akhgari 39736fa93f Bug 734302 - Part 1: Enable the Gecko Profiler on native Fennec; r=BenWa,khuey
--HG--
extra : rebase_source : 050443e4850aac78551ed985aa81522d808bcb6b
2012-03-02 14:11:47 -05:00
Jacek Caban 3242e91654 Bug 737667 - GCC build warning: sps_sampler.h: In member function ?void ProfileStack::push(const char*)?: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (also in addMarker) r=ehsan
--HG--
extra : rebase_source : bdd6093ee36e25fb33b59873be6c1c0068574869
2012-03-21 17:06:01 +01:00
Vladan Djeric 3f47c98434 Bug 735829. Report PDB filename in chrome hang reports. r=ehsan 2012-03-19 19:05:25 -04:00
Jacek Caban 9a02c70f54 Bug 735191 - shared-libraries-win32.cc fails to crosscompile on case-sensitive OSes r=ehsan 2012-03-15 13:44:02 +01:00
Ehsan Akhgari e10fb682a3 Bug 735861 - Make shared-libraries.h not build on platforms where Gecko Profiler is not supported; r=BenWa 2012-03-14 22:58:18 -04:00
Mike Hommey 87ca7a1e77 Bug 734335 - Only build SPS on supported platforms. r=bgirard,r=khuey 2012-03-13 09:48:00 +01:00
Benoit Girard 8cb3acf165 Bug 734691 - Change profiler output format to support threads. r=mstange 2012-03-12 10:58:40 -04:00
Benoit Girard 1e6745a3f8 Bug 734691 - Move Stack to ThreadProfile since it's thread specific. r=mstange 2012-03-12 10:58:37 -04:00
Benoit Girard 2100bc10e4 Bug 734691 - Rename Stack/Profile to imply their thread specific. r=mstange 2012-03-12 10:58:33 -04:00
Benoit Girard 9ad058ba70 Bug 732806 - Fix profiling stack end detection. r=jmuizelaar 2012-03-12 10:57:36 -04:00
Benoit Girard b0dd1400b6 Bug 734707 - Fix Jank profiling feature side effects. r=jmuizelaar 2012-03-12 10:56:33 -04:00
Vladan Djeric a6bb287122 Bug 712109 - Implement chrome hang reporting on profiling branch. r=ehsan 2012-03-12 07:07:05 -04:00
Benoit Girard 072241443d Backout changeset a76566398d36 2012-03-11 12:03:45 -04:00
Benoit Girard 05368a91df Backed out changeset 5f5fc6a1133e 2012-03-11 12:03:05 -04:00
Benoit Girard afbf9dcbfc Bug 734691 - Part 2: Move Stack to ThreadProfile since it's thread specific. r=mstange 2012-03-10 23:09:10 -05:00
Benoit Girard ba2399ab6d Bug 734691 - Part 1: Rename Stack/Profile to imply their thread specific. r=mstange 2012-03-10 23:08:11 -05:00
Jeff Muizelaar ddc66bc4d7 Bug 726369 - Profiler: Make the circular buffer reader code safer. r=BenWa 2012-02-11 18:56:18 -05:00
Jeff Muizelaar 1171e866cf Bug 723711. Return the profile data as JS objects. r=bgirard 2012-02-02 16:57:20 -05:00
Jeff Muizelaar 4ea0f9f5a6 Backout c433e993506b 2012-03-09 11:21:43 -05:00
Jeff Muizelaar 9f2355d175 Bug 723711. Return the profile data as JS objects. r=bgirard 2012-02-02 16:57:20 -05:00
Jeff Muizelaar 79f09f5a88 Bug 732806. Make stackwalking respect the stack end on OS X. r=ehsan
This will help us avoid some crashes.
2012-02-15 00:17:34 -05:00
Markus Stange a72e26ef93 Bug 733792 - Leave original symbol addresses in the profile report. r=bgirard 2012-03-09 16:20:03 +01:00
Markus Stange 7afd2b98b2 Bug 733792 - Add nsIProfiler::getSharedLibraryInformation. r=bgirard 2012-03-09 16:20:00 +01:00
Justin Lebar 69fb6f1047 Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo 2012-02-29 22:56:43 -05:00
Benoit Girard 92065cff8e Bug 708733 - Profiler: Only use leaf data on android ARM. r=ehsan 2012-02-11 10:49:16 -05:00
Benoit Girard 5107e4249d Bug 730302 - Fix GetMarker code in Table::Tick. r=mstange 2012-02-24 11:51:13 -05:00
Jeff Muizelaar 4b29f25915 Bug 724079. Add back the mac backend. r=ehsan
This should improve latency and perhaps fix the crashes
we're seeing in bug 721025.
2012-02-03 15:19:18 -05:00
Benoit Girard 14dbecbda4 Bug 722124 - Profiler cleanup. r=ehsan
--HG--
rename : tools/profiler/sps/TableTicker.cpp => tools/profiler/TableTicker.cpp
rename : tools/profiler/public/nsIProfiler.idl => tools/profiler/nsIProfiler.idl
rename : tools/profiler/sps/platform-linux.cc => tools/profiler/platform-linux.cc
rename : tools/profiler/sps/platform-win32.cc => tools/profiler/platform-win32.cc
rename : tools/profiler/sps/platform.h => tools/profiler/platform.h
rename : tools/profiler/sps/shared-libraries-linux.cc => tools/profiler/shared-libraries-linux.cc
rename : tools/profiler/sps/shared-libraries-macos.cc => tools/profiler/shared-libraries-macos.cc
rename : tools/profiler/sps/shared-libraries-win32.cc => tools/profiler/shared-libraries-win32.cc
rename : tools/profiler/sps/shared-libraries.h => tools/profiler/shared-libraries.h
rename : tools/profiler/sps/sps_sampler.h => tools/profiler/sps_sampler.h
rename : tools/profiler/sps/thread_helper.h => tools/profiler/thread_helper.h
rename : tools/profiler/sps/v8-support.h => tools/profiler/v8-support.h
2012-01-29 01:56:41 -05:00
Ehsan Akhgari e32860d3c4 Bug 721780 - Rename XRE_Main to something more useful; r=BenWa 2012-01-31 10:10:05 -05:00
Ehsan Akhgari d5c4dc2b18 Bug 721564 - Get module information for the profiler on Windows; r=BenWa 2012-01-26 19:03:42 -05:00
Jeff Muizelaar 0afd025549 Bug 719917. Add some more network and plugin related SAMPLE_LABELs. r=bgirard
--HG--
extra : rebase_source : d21f4ffb244ae661e1ca222c02a8fa8b40a071bd
2012-01-18 19:53:35 -05:00
Daniel Holbert 9f920dbf3b Bug 719698: Mark functions in thread_helper.h as 'inline' instead of 'static' to fix build warning when they go unused. r=ehsan 2012-01-20 14:43:12 -08:00
Jeff Muizelaar 5acfb2d6b6 Bug 719176. Add the ability to maintain a temporary buffer of samples. r=ehsan
This lets us make the decision about whether to discard samples later
than when we record them which is important for about:jank.
2012-01-18 18:07:46 -05:00
Matt Brubeck f26465597e Merge last green changeset from inbound to mozilla-central 2012-01-19 10:37:48 -08:00
Tim Taubert 55aff2dc60 merge m-c to fx-team 2012-01-19 12:10:03 +01:00
Robert Strong 90e53d8fe2 RelEng patch - Bug 660038 - Remove channel switching support. r=nthomas 2012-01-18 14:10:25 -08:00
Randell Jesup 3cb9a88bc2 Bug 712224: Make jprof generate output for 'cleopatra' backend. rs=dbaron DONTBUILD 2012-01-18 00:11:00 -05:00
Jeff Muizelaar 19d31dec25 Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Jeff Muizelaar 5a364c1545 Bug 719273. Avoid including windows header files into sampler.h. r=ehsan
The windows headers do inconvenient things like:
#define CreateEvent CreateEventW

We'd like to avoid this.
2012-01-19 00:43:03 -05:00
Matt Brubeck 3aa150e837 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar e18b95dabf Bug 718440. Add more sampler labels to various places. r=bgirard
This shows the problems described in bug 710068.
2012-01-17 15:33:04 -05:00
Benoit Girard 96369eaeb1 Bug 719239 - Gecko Profiler: Stackwalk feature isn't reported properly. r=ehsan 2012-01-18 17:50:30 -05:00
Ehsan Akhgari e4db5a029d Bug 718681 - Correct the preprocessor condition in mozilla_sampler_get_features; r=BenWa 2012-01-17 11:49:40 -05:00
Ehsan Akhgari 882bf03bd7 Bug 718026 - Only walk the stack on profiling builds; r=jrmuizel 2012-01-17 11:49:05 -05:00
Ehsan Akhgari fab6fc7788 Bug 718025 - Add support for stacktraces on Windows to the built-in profiler; r=jrmuizel 2012-01-16 19:59:15 -05:00
Phil Ringnalda 885c74d009 Back out 2273e0264d4a (bug 718025) for Windows build failure 2012-01-16 18:24:18 -08:00
Ehsan Akhgari 9600e90ef3 Bug 718025 - Add support for stacktraces on Windows to the built-in profiler; r=jrmuizel 2012-01-16 19:59:15 -05:00
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
Jeff Muizelaar cd25e4a953 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 : bb8174320728b6c4976047fd25e6e93280ea444a
2011-12-01 10:06:20 -05:00
Jeff Muizelaar 31576eb3f6 Bug 698002. Change active_ to Atomic32. r=bgirard
This brings us closer to V8

--HG--
extra : rebase_source : 75685ef885ed1f8abb4ef7a6144d6581a2316941
2011-10-31 13:25:04 -04:00
Jeff Muizelaar 1f1379dbfb Bug 698002. Add more v8 support code. r=bgirard
These are needed for the mac port

--HG--
extra : rebase_source : f035957c8649d0ba5c3794ac6a57be1b215660b7
2011-10-31 12:01:54 -04:00
Justin Lebar 6628e1417b Bug 705856 - Enable SPS profiler on desktop Linux. r=BenWa 2011-12-01 14:45:45 -05:00
Jeff Muizelaar 0df5edb374 Bug 698002. Fixup architecture define typo. r=bgirard 2011-10-31 12:05:30 -04:00
Jeff Muizelaar 28ef4df766 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 b5ea131024 Bug 698002. Move platform.cc to platform-linux.cc. r=benwa
--HG--
extra : rebase_source : bfc230a6e40bcd2550c0e5a083ea6366883105fc
2011-10-28 16:47:25 -04:00
Benoit Girard 9458d1c934 Bug 700754 - Add Profiler responsiveness hooks. r=ted.mielczarek 2011-11-28 00:31:59 -05:00
Benoit Girard e27331440d Bug 699918 - Add a Profiler XPCOM Module. r=jmuizelaar 2011-11-04 17:07:50 -04:00
Randell Jesup c06ec5f1c7 Bug 693586: Add circular buffer support to jprof r=dbaron 2011-11-08 00:34:40 -05:00
Rafael Ávila de Espíndola 9972f0d574 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.

--HG--
extra : rebase_source : 4c0a75892e30a6e522ed981a1ff12df99d2a0464
2011-11-04 09:49:48 -04:00
Rafael Ávila de Espíndola 1a88fa5343 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 26931ef829 Bug 683229 - Add user space profiling using Simple Profiler System (SPS). r=cjones r=jmuizelaar
--HG--
extra : rebase_source : 2482a65256588b88663e8f0ab621b9787bbe5489
2011-08-26 17:05:37 -07:00
Bobby Holley 4056145565 Bug 584894 - Move libpng to media/libpng. r=khuey
--HG--
rename : modules/libimg/png/CHANGES => media/libpng/CHANGES
rename : modules/libimg/png/LICENSE => media/libpng/LICENSE
rename : modules/libimg/png/MOZCHANGES => media/libpng/MOZCHANGES
rename : modules/libimg/png/Makefile.in => media/libpng/Makefile.in
rename : modules/libimg/png/README => media/libpng/README
rename : modules/libimg/png/crashtests/374810-1.html => media/libpng/crashtests/374810-1.html
rename : modules/libimg/png/crashtests/crashtests.list => media/libpng/crashtests/crashtests.list
rename : modules/libimg/png/libpng.txt => media/libpng/libpng.txt
rename : modules/libimg/png/mozpngconf.h => media/libpng/mozpngconf.h
rename : modules/libimg/png/png.c => media/libpng/png.c
rename : modules/libimg/png/png.h => media/libpng/png.h
rename : modules/libimg/png/pngconf.h => media/libpng/pngconf.h
rename : modules/libimg/png/pngerror.c => media/libpng/pngerror.c
rename : modules/libimg/png/pngget.c => media/libpng/pngget.c
rename : modules/libimg/png/pngmem.c => media/libpng/pngmem.c
rename : modules/libimg/png/pngpread.c => media/libpng/pngpread.c
rename : modules/libimg/png/pngpriv.h => media/libpng/pngpriv.h
rename : modules/libimg/png/pngread.c => media/libpng/pngread.c
rename : modules/libimg/png/pngrio.c => media/libpng/pngrio.c
rename : modules/libimg/png/pngrtran.c => media/libpng/pngrtran.c
rename : modules/libimg/png/pngrutil.c => media/libpng/pngrutil.c
rename : modules/libimg/png/pngset.c => media/libpng/pngset.c
rename : modules/libimg/png/pngtrans.c => media/libpng/pngtrans.c
rename : modules/libimg/png/pngwio.c => media/libpng/pngwio.c
rename : modules/libimg/png/pngwrite.c => media/libpng/pngwrite.c
rename : modules/libimg/png/pngwtran.c => media/libpng/pngwtran.c
rename : modules/libimg/png/pngwutil.c => media/libpng/pngwutil.c
2011-10-17 21:25:53 -07:00
Bobby Holley 2d0b90011e Bug 584894 - Move libjpeg to media/libjpeg. r=khuey
--HG--
rename : jpeg/MOZCHANGES => media/libjpeg/MOZCHANGES
rename : jpeg/Makefile.in => media/libjpeg/Makefile.in
rename : jpeg/README => media/libjpeg/README
rename : jpeg/README-turbo.txt => media/libjpeg/README-turbo.txt
rename : jpeg/cderror.h => media/libjpeg/cderror.h
rename : jpeg/cdjpeg.h => media/libjpeg/cdjpeg.h
rename : jpeg/jaricom.c => media/libjpeg/jaricom.c
rename : jpeg/jcapimin.c => media/libjpeg/jcapimin.c
rename : jpeg/jcapistd.c => media/libjpeg/jcapistd.c
rename : jpeg/jcarith.c => media/libjpeg/jcarith.c
rename : jpeg/jccoefct.c => media/libjpeg/jccoefct.c
rename : jpeg/jccolor.c => media/libjpeg/jccolor.c
rename : jpeg/jcdctmgr.c => media/libjpeg/jcdctmgr.c
rename : jpeg/jchuff.c => media/libjpeg/jchuff.c
rename : jpeg/jchuff.h => media/libjpeg/jchuff.h
rename : jpeg/jcinit.c => media/libjpeg/jcinit.c
rename : jpeg/jcmainct.c => media/libjpeg/jcmainct.c
rename : jpeg/jcmarker.c => media/libjpeg/jcmarker.c
rename : jpeg/jcmaster.c => media/libjpeg/jcmaster.c
rename : jpeg/jcomapi.c => media/libjpeg/jcomapi.c
rename : jpeg/jconfig.h => media/libjpeg/jconfig.h
rename : jpeg/jconfig.h.in => media/libjpeg/jconfig.h.in
rename : jpeg/jcparam.c => media/libjpeg/jcparam.c
rename : jpeg/jcphuff.c => media/libjpeg/jcphuff.c
rename : jpeg/jcprepct.c => media/libjpeg/jcprepct.c
rename : jpeg/jcsample.c => media/libjpeg/jcsample.c
rename : jpeg/jdapimin.c => media/libjpeg/jdapimin.c
rename : jpeg/jdapistd.c => media/libjpeg/jdapistd.c
rename : jpeg/jdarith.c => media/libjpeg/jdarith.c
rename : jpeg/jdatadst.c => media/libjpeg/jdatadst.c
rename : jpeg/jdatasrc.c => media/libjpeg/jdatasrc.c
rename : jpeg/jdcoefct.c => media/libjpeg/jdcoefct.c
rename : jpeg/jdcolor.c => media/libjpeg/jdcolor.c
rename : jpeg/jdct.h => media/libjpeg/jdct.h
rename : jpeg/jddctmgr.c => media/libjpeg/jddctmgr.c
rename : jpeg/jdhuff.c => media/libjpeg/jdhuff.c
rename : jpeg/jdhuff.h => media/libjpeg/jdhuff.h
rename : jpeg/jdinput.c => media/libjpeg/jdinput.c
rename : jpeg/jdmainct.c => media/libjpeg/jdmainct.c
rename : jpeg/jdmarker.c => media/libjpeg/jdmarker.c
rename : jpeg/jdmaster.c => media/libjpeg/jdmaster.c
rename : jpeg/jdmerge.c => media/libjpeg/jdmerge.c
rename : jpeg/jdphuff.c => media/libjpeg/jdphuff.c
rename : jpeg/jdpostct.c => media/libjpeg/jdpostct.c
rename : jpeg/jdsample.c => media/libjpeg/jdsample.c
rename : jpeg/jdtrans.c => media/libjpeg/jdtrans.c
rename : jpeg/jerror.c => media/libjpeg/jerror.c
rename : jpeg/jerror.h => media/libjpeg/jerror.h
rename : jpeg/jfdctflt.c => media/libjpeg/jfdctflt.c
rename : jpeg/jfdctfst.c => media/libjpeg/jfdctfst.c
rename : jpeg/jfdctint.c => media/libjpeg/jfdctint.c
rename : jpeg/jidctflt.c => media/libjpeg/jidctflt.c
rename : jpeg/jidctfst.c => media/libjpeg/jidctfst.c
rename : jpeg/jidctint.c => media/libjpeg/jidctint.c
rename : jpeg/jidctred.c => media/libjpeg/jidctred.c
rename : jpeg/jinclude.h => media/libjpeg/jinclude.h
rename : jpeg/jmemmgr.c => media/libjpeg/jmemmgr.c
rename : jpeg/jmemnobs.c => media/libjpeg/jmemnobs.c
rename : jpeg/jmemsys.h => media/libjpeg/jmemsys.h
rename : jpeg/jmorecfg.h => media/libjpeg/jmorecfg.h
rename : jpeg/jpegcomp.h => media/libjpeg/jpegcomp.h
rename : jpeg/jpegint.h => media/libjpeg/jpegint.h
rename : jpeg/jpeglib.h => media/libjpeg/jpeglib.h
rename : jpeg/jquant1.c => media/libjpeg/jquant1.c
rename : jpeg/jquant2.c => media/libjpeg/jquant2.c
rename : jpeg/jsimd.h => media/libjpeg/jsimd.h
rename : jpeg/jsimd_none.c => media/libjpeg/jsimd_none.c
rename : jpeg/jsimddct.h => media/libjpeg/jsimddct.h
rename : jpeg/jutils.c => media/libjpeg/jutils.c
rename : jpeg/jversion.h => media/libjpeg/jversion.h
rename : jpeg/simd/Makefile.in => media/libjpeg/simd/Makefile.in
rename : jpeg/simd/jcclrmmx.asm => media/libjpeg/simd/jcclrmmx.asm
rename : jpeg/simd/jcclrss2-64.asm => media/libjpeg/simd/jcclrss2-64.asm
rename : jpeg/simd/jcclrss2.asm => media/libjpeg/simd/jcclrss2.asm
rename : jpeg/simd/jccolmmx.asm => media/libjpeg/simd/jccolmmx.asm
rename : jpeg/simd/jccolss2-64.asm => media/libjpeg/simd/jccolss2-64.asm
rename : jpeg/simd/jccolss2.asm => media/libjpeg/simd/jccolss2.asm
rename : jpeg/simd/jcolsamp.inc => media/libjpeg/simd/jcolsamp.inc
rename : jpeg/simd/jcqnt3dn.asm => media/libjpeg/simd/jcqnt3dn.asm
rename : jpeg/simd/jcqntmmx.asm => media/libjpeg/simd/jcqntmmx.asm
rename : jpeg/simd/jcqnts2f-64.asm => media/libjpeg/simd/jcqnts2f-64.asm
rename : jpeg/simd/jcqnts2f.asm => media/libjpeg/simd/jcqnts2f.asm
rename : jpeg/simd/jcqnts2i-64.asm => media/libjpeg/simd/jcqnts2i-64.asm
rename : jpeg/simd/jcqnts2i.asm => media/libjpeg/simd/jcqnts2i.asm
rename : jpeg/simd/jcqntsse.asm => media/libjpeg/simd/jcqntsse.asm
rename : jpeg/simd/jcsammmx.asm => media/libjpeg/simd/jcsammmx.asm
rename : jpeg/simd/jcsamss2-64.asm => media/libjpeg/simd/jcsamss2-64.asm
rename : jpeg/simd/jcsamss2.asm => media/libjpeg/simd/jcsamss2.asm
rename : jpeg/simd/jdclrmmx.asm => media/libjpeg/simd/jdclrmmx.asm
rename : jpeg/simd/jdclrss2-64.asm => media/libjpeg/simd/jdclrss2-64.asm
rename : jpeg/simd/jdclrss2.asm => media/libjpeg/simd/jdclrss2.asm
rename : jpeg/simd/jdcolmmx.asm => media/libjpeg/simd/jdcolmmx.asm
rename : jpeg/simd/jdcolss2-64.asm => media/libjpeg/simd/jdcolss2-64.asm
rename : jpeg/simd/jdcolss2.asm => media/libjpeg/simd/jdcolss2.asm
rename : jpeg/simd/jdct.inc => media/libjpeg/simd/jdct.inc
rename : jpeg/simd/jdmermmx.asm => media/libjpeg/simd/jdmermmx.asm
rename : jpeg/simd/jdmerss2-64.asm => media/libjpeg/simd/jdmerss2-64.asm
rename : jpeg/simd/jdmerss2.asm => media/libjpeg/simd/jdmerss2.asm
rename : jpeg/simd/jdmrgmmx.asm => media/libjpeg/simd/jdmrgmmx.asm
rename : jpeg/simd/jdmrgss2-64.asm => media/libjpeg/simd/jdmrgss2-64.asm
rename : jpeg/simd/jdmrgss2.asm => media/libjpeg/simd/jdmrgss2.asm
rename : jpeg/simd/jdsammmx.asm => media/libjpeg/simd/jdsammmx.asm
rename : jpeg/simd/jdsamss2-64.asm => media/libjpeg/simd/jdsamss2-64.asm
rename : jpeg/simd/jdsamss2.asm => media/libjpeg/simd/jdsamss2.asm
rename : jpeg/simd/jf3dnflt.asm => media/libjpeg/simd/jf3dnflt.asm
rename : jpeg/simd/jfmmxfst.asm => media/libjpeg/simd/jfmmxfst.asm
rename : jpeg/simd/jfmmxint.asm => media/libjpeg/simd/jfmmxint.asm
rename : jpeg/simd/jfss2fst-64.asm => media/libjpeg/simd/jfss2fst-64.asm
rename : jpeg/simd/jfss2fst.asm => media/libjpeg/simd/jfss2fst.asm
rename : jpeg/simd/jfss2int-64.asm => media/libjpeg/simd/jfss2int-64.asm
rename : jpeg/simd/jfss2int.asm => media/libjpeg/simd/jfss2int.asm
rename : jpeg/simd/jfsseflt-64.asm => media/libjpeg/simd/jfsseflt-64.asm
rename : jpeg/simd/jfsseflt.asm => media/libjpeg/simd/jfsseflt.asm
rename : jpeg/simd/ji3dnflt.asm => media/libjpeg/simd/ji3dnflt.asm
rename : jpeg/simd/jimmxfst.asm => media/libjpeg/simd/jimmxfst.asm
rename : jpeg/simd/jimmxint.asm => media/libjpeg/simd/jimmxint.asm
rename : jpeg/simd/jimmxred.asm => media/libjpeg/simd/jimmxred.asm
rename : jpeg/simd/jiss2flt-64.asm => media/libjpeg/simd/jiss2flt-64.asm
rename : jpeg/simd/jiss2flt.asm => media/libjpeg/simd/jiss2flt.asm
rename : jpeg/simd/jiss2fst-64.asm => media/libjpeg/simd/jiss2fst-64.asm
rename : jpeg/simd/jiss2fst.asm => media/libjpeg/simd/jiss2fst.asm
rename : jpeg/simd/jiss2int-64.asm => media/libjpeg/simd/jiss2int-64.asm
rename : jpeg/simd/jiss2int.asm => media/libjpeg/simd/jiss2int.asm
rename : jpeg/simd/jiss2red-64.asm => media/libjpeg/simd/jiss2red-64.asm
rename : jpeg/simd/jiss2red.asm => media/libjpeg/simd/jiss2red.asm
rename : jpeg/simd/jisseflt.asm => media/libjpeg/simd/jisseflt.asm
rename : jpeg/simd/jsimd.h => media/libjpeg/simd/jsimd.h
rename : jpeg/simd/jsimd_i386.c => media/libjpeg/simd/jsimd_i386.c
rename : jpeg/simd/jsimd_x86_64.c => media/libjpeg/simd/jsimd_x86_64.c
rename : jpeg/simd/jsimdcfg.inc => media/libjpeg/simd/jsimdcfg.inc
rename : jpeg/simd/jsimdcfg.inc.h => media/libjpeg/simd/jsimdcfg.inc.h
rename : jpeg/simd/jsimdcpu.asm => media/libjpeg/simd/jsimdcpu.asm
rename : jpeg/simd/jsimdext.inc => media/libjpeg/simd/jsimdext.inc
rename : jpeg/transupp.h => media/libjpeg/transupp.h
2011-10-17 21:25:53 -07:00
Ehsan Akhgari 92064e6d3f 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 49fba95a20 bug 691245: Fix jprof under Fedora 15 (needs -ldl) r=dbaron 2011-10-05 09:20:20 -04:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00