Commit Graph

1608 Commits

Author SHA1 Message Date
Randall Barker
699f5b6a9b Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC. r=nfroyd 2015-04-03 15:52:00 +02:00
Shu-yu Guo
67f785d3f2 Bug 1150714 - Fix streaming tracked optimizations for functions that don't have a displayAtom. (r=djvj) 2015-04-06 18:38:31 -07:00
Shu-yu Guo
383c446174 Bug 1151168 - Don't flush profiled threads that are pending deletion on JS shutdown and don't delete expired markers when resetting the profile buffer. (r=djvj) 2015-04-06 18:38:30 -07:00
YFdyh000
6ec9385d1b Bug 1146875 - Fix the leak-gauge.html broken and add a encoding declaration. r=dbaron 2015-03-24 06:23:00 -04:00
Jan Beich
a723bd9d20 Bug 1145988 - Unbreak build on non-SPS platforms after bug 1129249. r=dholbert f=chiajung 2015-04-02 21:43:48 +02:00
Shu-yu Guo
2a5551df33 Bug 1137569 - Delay stringification of JIT frames until streaming time. (r=djvj) 2015-04-02 14:50:08 -07:00
Shu-yu Guo
e7aa0f3877 Bug 1137569 - Stream and save samples and markers in the profiler on JSRuntime destruction. (r=mstange) 2015-04-02 14:50:08 -07:00
Markus Stange
d55c1db86c Bug 1150642 - Make mozilla_sampler_save_profile_to_file callable from lldb in Nightly builds. r=jrmuizel 2015-04-01 12:08:34 -04:00
Mike Hommey
ee117642af Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Shu-yu Guo
2723dcd0ff Bug 1148069 - Ensure synchronous sampling does not set JitcodeGlobalEntry's generation. (r=djvj) 2015-03-28 01:21:04 -07:00
Phil Ringnalda
1cda50a708 Backed out 2 changesets (bug 1148069) for devtools-2 leaks
CLOSED TREE

Backed out changeset d1e9b787eaeb (bug 1148069)
Backed out changeset c68a6ebe6083 (bug 1148069)
2015-03-27 19:58:29 -07:00
Shu-yu Guo
755bed6909 Bug 1148069 - Followup: maybe fix leaks on a CLOSED TREE. (r=me) 2015-03-27 18:40:06 -07:00
Shu-yu Guo
dc37949a92 Bug 1148069 - Set SyncProfiles' buffers to an invalid generation. (r=djvj) 2015-03-27 16:39:25 -07:00
Wes Kocher
ec293905dc Merge m-c to inbound a=merge CLOSED TREE 2015-03-26 17:46:35 -07:00
Mike Hommey
57fbadfa4f Bug 1147283 - Replace mozpack.path with mozpath. r=mshal
Back when mozpack.path was added, it was used as:

  import mozpack.path
  mozpack.path.func()

Nowadays, the common idiom is:

  import mozpack.path as mozpath
  mozpath.func()

because it's shorter.

$ git grep mozpath\\. | wc -l
423
$ git grep mozpack.path\\. | wc -l
123

This change was done with:
$ git grep -l mozpack.path\\. | xargs sed -i 's/mozpack\.path\./mozpath./g'
$ git grep -l 'import mozpack.path$' | xargs sed -i 's/import mozpack.path$/\0 as mozpath/'
$ (pat='import mozpack.path as mozpath'; git grep -l "$pat" | xargs sed -i "1,/$pat/b;/$pat/d")
2015-03-27 08:13:16 +09:00
Stéphane SCHMIDELY
900310dd9b Bug 1144629 - UnicodeDecodeError in ./mach mercurial-setup. r=gps, r=glandium 2015-03-25 12:25:49 +01:00
Shu-yu Guo
dfa17e9fc8 Bug 1146718 - Split the 'J' tag in the profiler into 'J' (JIT frames without opt info) and 'O' (with opt info). (r=djvj) 2015-03-24 18:49:16 -07:00
Shu-yu Guo
8f37c8962f Bug 1145924 - Ensure JSRuntime is kept in sync with the profiler. (r=djvj) 2015-03-23 20:33:01 -07:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Shu-yu Guo
6bd8282dd3 Bug 1143860 - Deduplicate tracked optimizations when streaming the profile. (r=djvj) 2015-03-20 20:48:31 -07:00
Shu-yu Guo
cd30bbef84 Bug 1143860 - Add column number to PCToLineNumber. (r=djvj) 2015-03-20 20:48:30 -07:00
Kannan Vijayan
ed4c0370c4 Bug 1135236 - Remove unused print callbacks in profiler backend. r=mstange 2015-03-20 13:51:37 -04:00
Kannan Vijayan
3b8d6c58e5 Bug 1145333 - Skip NativeStackAddrs that conflict with pseudoStackAddrs and jsStackAddrs when merging sampler stacks. r=mstange 2015-03-20 13:50:46 -04:00
Kannan Vijayan
ba33562b8c Bug 1143802 - Forward jit level information to profiler frontend. r=shu 2015-03-20 13:50:23 -04:00
chiajung hung
6627df06b1 Bug 1129249 - Add a "restyle" feature to profiler and split the style label in Cleopatra based on the restyleSource, r=dholbert,mstange 2015-03-19 02:19:00 +01:00
chiajung hung
d84e7bed32 Bug 1142181 - ProfilerBacktrace.cpp should #include its own .h file first, r=aklotz 2015-03-16 23:01:00 +01:00
Shu-yu Guo
3dc8d97834 Bug 1139388 - Remove superfluous locking in the OS X profiler implementation to fix deadlock. (r=mstange) 2015-03-12 16:25:24 -07:00
Markus Stange
3f18f46d05 Bug 1141283 - Compensate for stackwalk duration and sleep overhead when determining sampler sleep time. r=BenWa 2015-03-08 20:47:31 -04:00
Shu-yu Guo
2026092b1d Bug 1140059 - Stop leaking mThreadNameFilters in the profiler. (r=mstange) 2015-03-06 17:58:26 -08:00
Markus Stange
dde7679e8a Bug 1132586 - Add thread annotations into the profile buffer when using the unwinder thread. r=jseward 2015-02-12 17:07:54 -05:00
Shu-yu Guo
8eeda9c070 Bug 1136834 - Stop leaking markers in ProfileBuffer. (r=mstange) 2015-03-05 16:23:17 -08:00
Felix Janda
bfa4f62d03 Bug 1130164 - tools/profiler: Use <stdint.h> types. r=jseward 2015-02-05 22:51:14 +01:00
Kannan Vijayan
01e8d2776b Bug 1139506 - Check for null JSRuntime in tableticker stack trace merge. r=shu 2015-03-04 18:18:08 -05:00
Mike Shal
edec6e0804 Bug 1137756 - Use absolute paths in complete-patch.patch. r=gps 2015-02-27 17:49:29 +01:00
Kannan Vijayan
a7ec86cd07 Bug 1130367 - Ensure profiler stack sampling is disabled when spsProfiler is disabled. r=shu 2015-03-02 17:46:13 -05:00
chiajung hung
3e005dd69d Bug 1129249 - Expose the element id in Gecko profiler for Restyle. r=dholbert r=benwa 2015-02-25 23:16:00 +01:00
Kannan Vijayan
c85ef36c15 Bug 1129510 - Trace references to JS heap from Profiler buffers. r=shu 2015-02-25 16:43:39 -05:00
Ryan VanderMeulen
24d3abfbf9 Backed out changesets 3de23a29bf71 and d42c64b791e6 (bug 1129510) for debug SM(e) timeouts. 2015-02-25 13:44:19 -05:00
Kannan Vijayan
923864b511 Bug 1129510 - Trace references to JS heap from Profiler buffers. r=shu 2015-02-25 11:26:28 -05:00
Shu-yu Guo
01e14a347f Bug 1129780 - Report the youngest sampled frame's line number if it has optimization info. (r=djvj) 2015-02-23 20:33:56 -08:00
Shu-yu Guo
76a818f4c8 Bug 1129769 - Handle more kinds when resolving tracked type names. (r=djvj) 2015-02-23 20:33:56 -08:00
Carsten "Tomcat" Book
6d8808c7af Backed out changeset bc2fdecaaec7 (bug 1129769) for hazard failures on a CLOSED TREE 2015-02-23 10:20:31 +01:00
Carsten "Tomcat" Book
9bf1fcebc5 Backed out changeset 389c918b643c (bug 1129780) 2015-02-23 10:20:05 +01:00
Shu-yu Guo
522ad62eb8 Bug 1129780 - Report the youngest sampled frame's line number if it has optimization info. (r=djvj) 2015-02-22 20:05:34 -08:00
Shu-yu Guo
ae0d6a31fa Bug 1129769 - Handle more kinds when resolving tracked type names. (r=djvj) 2015-02-22 20:05:34 -08:00
Ryan VanderMeulen
b06a9f6b14 Backed out changesets fbfda0143584 and e8cfd49ac790 (bug 1129510) for crashes.
CLOSED TREE
2015-02-20 20:01:08 -05:00
Kannan Vijayan
7375b7b173 Bug 1129510 - Trace references to JS heap from Profiler buffers. r=shu 2015-02-20 17:50:02 -05:00
Kannan Vijayan
5474eb6bc8 Bug 1135236 - Part 1 - Remove unused ProfileEntry methods. r=BenWa 2015-02-20 17:46:29 -05:00
Tom Tromey
f203579ad0 Bug 1130021 - change ProfileBuffer to use the threadsafe refcount. r=benwa 2015-02-06 10:49:00 +01:00
Shu-yu Guo
20cf051e39 Bug 1129781 - Re-lookup JIT code return addr when stringifying optimization info instead of caching the index. (r=djvj)
This saves us some circular buffer space.
2015-02-09 18:11:19 -08:00
Peter Chang
372b0a1794 Bug 1130243 Fix build break with MOZ_USE_SYSTRACE enabled, r=benwa 2015-02-09 10:21:44 +08:00
Shu-yu Guo
258060a71f Bug 1127156 - Attach optimization info to frames in profiler. (r=BenWa) 2015-02-04 13:41:04 -08:00
Daniel Holbert
b85d66bddf Bug 1128578: Add MOZ_OVERRIDE annotations in TableTicker.h. r=ehsan 2015-02-02 09:44:32 -08:00
Markus Stange
fc0410340b Bug 1127498 - Share one buffer between all threads, improve marker lifetime management, some code cleanup. r=BenWa 2015-01-30 14:49:32 -05:00
Cervantes Yu
06e09d2702 Bug 1103915: Output absolute starting time in the captured TaskTracer profile. r=tlee 2014-11-28 17:27:09 +08:00
Leonid V. Fedorenchik
4671745e3b Bug 1110874 - Delete payload passed to PROFILER_MARKER_PAYLOAD. r=kats 2015-01-19 10:01:35 -05:00
Kannan Vijayan
aa3deafde1 Bug 1057082 - 7/7 - Fix tests. r=jandem 2015-01-15 20:11:22 -05:00
Kannan Vijayan
1ff6b9a0c3 Bug 1057082 - 6/7 - Modify profiler sampler to use jit stack walking instead of pseudostack. r=jandem r=BenWa 2015-01-15 20:11:22 -05:00
Markus Stange
530c2c1eee Bug 1121591 - Add nsIProfiler.dumpProfileToFile. r=BenWa 2015-01-14 19:05:32 -05:00
Markus Stange
e79454c2cb Bug 1121576 - Profile the compositor thread by default. r=BenWa 2015-01-14 19:05:25 -05:00
Brian Smith
64e6633bea Bug 1119776, Part 7: Avoid defining snprintf when MSVC provides it (other), r=bsmedberg 2015-01-08 22:35:33 -08:00
Wes Kocher
c04baf38bd Backed out 8 changesets (bug 1057082) for ASAN failures on a CLOSED TREE
Backed out changeset 0c1fabbfc583 (bug 1057082)
Backed out changeset 99213cacd671 (bug 1057082)
Backed out changeset 76d528767946 (bug 1057082)
Backed out changeset b1ad3dabec8f (bug 1057082)
Backed out changeset f927b9899077 (bug 1057082)
Backed out changeset 635e101ed2be (bug 1057082)
Backed out changeset a7d9f158838d (bug 1057082)
Backed out changeset b1cb68eadf6c (bug 1057082)
2015-01-14 15:26:50 -08:00
Kannan Vijayan
439160ebef Bug 1057082 - 7/7 - Fix tests. r=jandem 2015-01-14 16:19:14 -05:00
Kannan Vijayan
afbd168541 Bug 1057082 - 6/7 - Modify profiler sampler to use jit stack walking instead of pseudostack. r=jandem r=BenWa 2015-01-14 16:19:14 -05:00
Nicholas Nethercote
ab55cdde55 Bug 1120126 - Fix crash in RtlVirtualUnwind when starting the Gecko profiler on Win64. r=dmajor. 2015-01-12 17:58:33 -08:00
Masatoshi Kimura
40a556102e Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Chris Peterson
90751d5a6c Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
Jim Chen
67f8ab8931 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
Ehsan Akhgari
bd52bd3f4e Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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 MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Nicholas Nethercote
b7b5e21cfd Bug 1014341 (part 1) - Remove trace-malloc. r=dbaron,glandium.
--HG--
extra : rebase_source : 771710c5427141d738eef112fab00951eb8e20e3
2015-01-07 16:13:03 -08:00
Ehsan Akhgari
0c5dd70e0a Bug 1118411 - Mark virtual overridden functions as MOZ_OVERRIDE in Gecko Profiler; r=BenWa 2015-01-06 16:30:03 -05:00
Gregory Szorc
7860b372e8 Bug 1115278 - Add virtualenv to Sphinx environment; r=glandium
Python API documentation requires the ability to import modules. So, we
set up a virtualenv in our Sphinx environment so module loading works.

This solution isn't perfect: a number of modules fail to import when run
under sphinx-build.

--HG--
extra : rebase_source : fce732e0b8aefe0e9a2ee594b8a08ac02e27579a
extra : histedit_source : bef27c947b95c3182fbc6cd656ae8c96acaaa6f4
2014-12-24 10:17:02 -08:00
Gregory Szorc
3c8383bfb1 Bug 1115278 - Move Sphinx documentation staging into Sphinx extension; r=glandium
Previously, code for staging the Sphinx documentation from moz.build
metadata lived in a mach command and in the moztreedocs module. This
patch moves the invocation to the Sphinx extension.

When the code is part of the Sphinx extension, it will run when executed
with sphinx-build. This is a prerequisite to getting RTD working, since
sphinx-build is the only supported entrypoint for generating
documentation there.

With this patch, we can now invoke sphinx-build to build the
documentation. The `mach build-docs` command is no longer needed.

--HG--
extra : rebase_source : 86e76c7d598ffa23dae858254eecedbdd12706a4
extra : histedit_source : 1826aa5ddfafdff62847cc293d1f0950b236caac
2014-12-24 09:46:41 -08:00
Gregory Szorc
7453184b35 Bug 1115278 - Store docs directory in a variable; r=glandium
--HG--
extra : rebase_source : b23e3e6202a2ea4b6f8ed24cdcf2698dededf6b6
extra : histedit_source : bfa988fb2259a03439700dfc894eefdeb2bb4a98
2014-12-23 23:18:48 -08:00
Gregory Szorc
4d46f8645a Bug 1115278 - Move Sphinx build scanning into moztreedocs; r=glandium
In order for Sphinx documentation to work with Read The Docs, we need
the code for scanning the build config for Sphinx documentation to live
in an importable module. This patch moves some code from the
|build-docs| mach command into an importable module.

--HG--
extra : rebase_source : 263972d1415419c59c25058ca2cb90b3c31eda89
extra : histedit_source : e120aa117c63d54f6b293ae63d9bd1338ea0e808
2014-12-23 22:53:50 -08:00
Gina Yeh
52d4bc5972 Bug 1111949 - [TaskTracer] Bulid error: mozilla-central/tools/profiler/GeckoTaskTracer.cpp:115:31: error: expected ')' before 'false', r=sinker. 2014-12-22 10:04:44 +08:00
Landry Breuil
b9d0a03471 Bug 1113973 - include <stdarg.h> to get struct va_list definition r=bgirard 2014-12-21 17:38:21 +01:00
Benoit Girard
62f0f1fd3d Bug 1112756 - Pass display list and layers data directly to the profiler. r=mstange
--HG--
extra : rebase_source : 5c7295e80105b0db43651553c1b901836571cbbb
2014-12-18 13:32:53 -05:00
Benoit Girard
190d0d9f31 Bug 1111258 - Let the profiler turn on layout.display-list.dump. r=mstange 2014-12-13 15:40:18 -05:00
Benoit Girard
311ed27756 Bug 1111830 - b2g profiling shouldn't delegate to child processes like e10s. r=mconley
--HG--
extra : rebase_source : 8dd4735fa38227890760c3781d78ce809abcc703
2014-12-15 18:17:25 -05:00
Ehsan Akhgari
c2e5b072b5 Bug 1111230 - Remove the library names for unsupported MSVC versions from trace-malloc; r=dbaron
--HG--
extra : amend_source : 3526194443a4b60a8d0b9b9fccb3ddb92e435c8b
2014-12-14 14:55:41 -05:00
Ehsan Akhgari
989b69c3c1 Bug 1111228 - Remove the MSVC2005 special casing from PseudoStack.h; r=BenWa
--HG--
extra : amend_source : c6adbc3ff76b040433e5b8af342a4aa4575f4bf0
2014-12-14 14:55:00 -05:00
Benoit Girard
8e5e6ad0c4 No bug - Fix type error breaking microsecond profiling. r=me
--HG--
extra : rebase_source : a7d36729969d95c7f9c79bedf4d825282231d7c2
2014-12-12 16:49:00 -05:00
Benoit Girard
eadab25b84 Bug 1110998 - Let the profiler turn on layers.dump-texture. r=mstange
--HG--
extra : rebase_source : 05cd593beaf75999aed7c274410dfac422dc6696
2014-12-12 16:11:57 -05:00
Tom Tromey
4e2842eb7f Bug 1047124 - Clean up memory leaks. r=BenWa 2014-12-11 09:41:00 -05:00
Kai-Zhen Li
e19fc32fe2 Bug 1104653 - Add api level 21 for gonk-l. r=glandium 2014-11-26 17:37:09 +08:00
Benoit Girard
85fb200107 Bug 1087435 - Fix accidental return. r=me 2014-12-09 14:44:10 -05:00
Chris Peterson
47091050b7 Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps 2014-12-04 16:24:03 -08:00
Trevor Saunders
dfe4aecd6f bug 1105074 - make more stuff final r=froydnj 2014-11-25 13:56:07 -05:00
Dawid Pura
fb45f25e6b Bug 1077326 - Change mercurial-setup process by adding run test for each external extension before prompting about it. r=glandium 2014-11-25 10:53:00 +01:00
Andrew Halberstadt
60f64fc9b0 Bug 1101773 - Add an --update-only option to |mach mercurial-setup| for updating extensions without running the wizard, r=gps
--HG--
extra : rebase_source : 93de55544f2f907255a286b1074ed201de62a46b
2014-11-19 15:01:04 -05:00
Gina Yeh
c94df689f2 Bug 1091479, Patch2: Rename enum members, r=sinker. 2014-11-24 09:47:39 +08:00
Gina Yeh
d6d29c0b52 Bug 1091479, Patch 1: Log dispatch time when creating a source event, r=sinker. 2014-11-24 09:47:13 +08:00
Gregory Szorc
54266615c4 Bug 1103052 - Remove traces of RBTools; r=mconley
We previous added support for RBTools in bug 943747 and bug 945577. Now
that we have MozReview, this functionality is next to useless. MozReview
is the future. So, we remove the old RBTools code.

DONTBUILD (NPOTB)

--HG--
extra : rebase_source : 2b307c31a5c484cb0bd785f582e3c248c3cb11da
2014-11-21 10:49:56 -08:00
Shelly Lin
bc6b24418f Bug 1100259 - Add TaskTracer labels in EventDispatcher and console.log of message with special prefix. r=sinker. 2014-11-20 10:57:27 +08:00
Mike Conley
79166ae2dc Bug 1008435 - Let the Gecko Profiler work with child processes. r=BenWa,smaug.
We now allow profiling the content process for e10s, and plugin processes.

--HG--
extra : rebase_source : 1f2e35d4d55b33b56160132893dbf7d4787925fa
extra : amend_source : d03465d4318f8e50c7624ad0eeb681b30c068b11
2014-11-18 12:50:25 -05:00
Julian Seward
dde41080ff Bug 788974 - Don't disable elfhack when enabling profiling on platforms supporting dl_iterate_phdr. r=glandium.
--HG--
extra : rebase_source : b89c14b8a11473e34707447656d8616dd90075c5
2014-11-17 23:43:14 +01:00
Cervantes Yu
e49d50a0fe Bug 1091533, Part 3: Reset thread id in SPS when a content process is forked. r=BenWa 2014-11-06 19:34:07 +08:00
Cervantes Yu
9b723812ad Bug 1091533, Part 1: Don't wrap tgkill() on the Nuwa process. r=BenWa 2014-11-06 19:10:52 +08:00
Nicholas Nethercote
ab64d9f1f6 Bug 1089441 - Update the refcount-balancer docs link. r=dbaron.
DONTBUILD because NPOTB.

--HG--
extra : rebase_source : 7e415ac8fd4f028f0cb56f9c5b3949a65a68849e
2014-11-13 14:02:21 -08:00