Commit Graph

1728 Commits

Author SHA1 Message Date
Kan-Ru Chen
d021c2ffe1 Bug 1216970 - Make the copying more obvious in ProfilerImpl::GetStacktrace. r=froydnj 2015-10-23 11:43:00 +08:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Nicholas Nethercote
8625b8ee31 Bug 1214924 - Add "WindowServer" and "kernel" processes to |mach power|'s output. r=BenWa. 2015-10-16 14:01:22 +11:00
Gregory Szorc
e9e9299a2c Bug 1212427 - Reference extra Python paths in Sphinx config; r=mshal
f6d18678498b / bug 1212427 introduced a few more dependencies. Add them
to sys.path in the Sphinx config so Sphinx works on Read the Docs.
2015-10-09 13:03:52 -07:00
Julien Pagès
726e91cd20 Bug 1209772 - 'mozregression was installed. please re-run your command.' when running ./mach mozregression. r=ahal 2015-10-05 22:08:35 +02:00
Nick Fitzgerald
6fee1e6162 Bug 121027 - Stop manually adding null entries to the profiler's JSON output; r=shu 2015-10-05 14:19:00 +02:00
Xidorn Quan
480aa15bc7 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-10-06 13:00:59 +11:00
Wes Kocher
1ae3af8b95 Backed out changeset 8f489e406701 (bug 822135) for m(dt) failures CLOSED TREE 2015-10-02 16:07:43 -07:00
Nick Fitzgerald
464d39f9a4 Bug 1209779 - Ensure that all null elements are written when streaming profiler JSON; r=shu 2015-10-02 14:27:40 -04:00
Benoit Girard
bd2df66a23 Bug 822135 - Fix nsProfiler observer strong reference. r=ehsan 2015-10-02 10:57:03 -04:00
Wes Kocher
9e15a76411 Backed out 6 changesets (bug 1186745) for android Cpp failures
Backed out changeset 237a6acf0709 (bug 1186745)
Backed out changeset 7b530871783a (bug 1186745)
Backed out changeset 73f73b531fc8 (bug 1186745)
Backed out changeset e36909748ddf (bug 1186745)
Backed out changeset 3a31df8787f0 (bug 1186745)
Backed out changeset df9cb8f5f0a5 (bug 1186745)
2015-10-02 10:35:09 -07:00
Xidorn Quan
573174c479 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-10-03 00:18:24 +10:00
Benoit Girard
21a1546f7c Bug 875605 - Add tests to check-moz-style. r=ms2ger 2013-05-26 09:42:31 -04:00
Benoit Girard
23db4f272a Bug 875605 - Add HG + update style rules for moz-check-style. r=ms2ger 2013-05-25 19:33:36 -04:00
Benoit Girard
cbe72fac64 Bug 875605 - Import check-webkit-style. r=ms2ger 2013-05-25 19:23:47 -04:00
Ted Mielczarek
91fa386d41 bug 543111 - Fix Mac Breakpad host tools to build in Linux cross-compile. r=mento,glandium 2015-10-01 15:04:27 -04:00
Carsten "Tomcat" Book
b60ce1d0b7 Backed out 4 changesets (bug 543111) for mac bustage on a CLOSED TREE
Backed out changeset 81f6fdc25862 (bug 543111)
Backed out changeset d1a73eaa6113 (bug 543111)
Backed out changeset 08c7f9ed5970 (bug 543111)
Backed out changeset 3b323ed3b20a (bug 543111)
2015-10-01 14:32:11 +02:00
Ted Mielczarek
3e0d746c1e bug 543111 - Fix Mac Breakpad host tools to build in Linux cross-compile. r=mento,glandium 2015-10-01 06:24:58 -04:00
Phil Ringnalda
1e38f6291b Back out 6 changesets (bug 1186745) for cpptest failure in runnable_utils_unittest, nrappkit_unittest, test_nr_socket_unittest
Backed out changeset c6142b815de0 (bug 1186745)
Backed out changeset d8f740ef2430 (bug 1186745)
Backed out changeset edc0b56d81fa (bug 1186745)
Backed out changeset 383f8ac033ea (bug 1186745)
Backed out changeset ce960a661987 (bug 1186745)
Backed out changeset 3e9783023fb2 (bug 1186745)
2015-09-28 19:05:02 -07:00
Xidorn Quan
4707215240 Bug 1186745 part 4 - Make TracedRunnable accept an already_AddRefed instead of a raw pointer. r=froydnj 2015-09-29 09:28:22 +10:00
Victor Porof
94946f8488 Bug 1196947 - Performance tools should display a message in private browsing, r=jsantell 2015-09-26 06:21:09 +02:00
Nathan Froyd
490e851ea9 Bug 1207245 - part 1 - move RefCounted<T> to its own file
Various bits depend on RefPtr.h to provide RefCounted<T> and RefPtr<T>.
It will be easier to manage an automatic conversion from RefPtr<T> to
nsRefPtr<T> if we split out the dependency on RefCounted<T> first.
2015-09-22 21:27:34 -04:00
Dylan Roeh
4152d1c9c2 Bug 1189881 - Move GeckoJavaSampler::getProfilerTime out of AndroidJNI.cpp. r=jchen 2015-09-17 16:17:26 -05:00
Nick Fitzgerald
34d1fde7e6 Bug 1204584 - Ensure that entries created by AutoSPSEntry propogate their category information; r=djvj
This commit renames ProfileEntry::set{Js,Cpp}Frame methods to
ProfileEntry::init{Js,Cpp}Frame to highlight the fact that they are intended to
initialize the entry, and that setting other flags should happen after one of
these calls.
2015-09-19 11:19:07 +02:00
sajitk
e388f7e233 Bug 1203477 - Moved Mozilla specific files to glue directory, and third party files to hyphen directory. Adjusted moz.build files. r=glandium 2015-09-16 21:01:00 +02:00
Nicholas Nethercote
9d3af62290 Bug 1204787 - Add |mach power|. r=glandium.
This extracts the most useful browser-related measurements from rapl and
powermetrics.
2015-09-15 16:23:45 +10:00
Carsten "Tomcat" Book
dfbdd9c6e4 Backed out 1 changesets (bug 1189881) for bustage on a CLOSED TREE
Backed out changeset e0b666c198dd (bug 1189881)
2015-09-17 14:07:04 +02:00
Dylan Roeh
0853ab2eac Bug 1189881 - Move GeckoJavaSampler::getProfilerTime out of AndroidJNI.cpp. r=jchen 2015-09-15 11:54:56 -05:00
James Willcox
2ff62392fa Bug 1205074 - Enable EHABI stack walking on Android r=BenWa 2015-09-16 13:23:28 -05:00
Kan-Ru Chen
047aee244e Bug 1123237 - Part 11. Don't use STL in memory-profiler. r=BenWa,cervantes 2015-09-16 10:31:13 +08:00
Kan-Ru Chen
150d9dd765 Bug 1123237 - Part 8. Tracking the memory events. r=BenWa,terrence
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-09-16 10:31:12 +08:00
Kan-Ru Chen
24126f5767 Bug 1123237 - Part 7. XPCOM interface for memory profiler. r=smaug
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-09-16 10:31:12 +08:00
Kan-Ru Chen
19b59504dc Bug 1123237 - Part 6. A new API to get backtrace without allocating memory in profiler. r=mstange
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-09-16 10:31:11 +08:00
Gregory Szorc
f52a568527 Bug 1200461 - Prompt for Bugzilla API Key instead of password; r=smacleod
All extensions in version-control-tools should support Bugzilla API Keys
now. MozReview requires them. We'll likely remove support for passwords
and cookie auth in the future. This commit transitions the Mercurial
setup wizard to API Keys exclusively.

DONTBUILD (NPOTB)
2015-09-15 15:57:40 -07:00
sajitk
e0223d4184 Bug 1200065 - Split Mozilla specific code from extensions/spellcheck/hunspell directory to glue directory and adjusted moz.build files. r=glandium 2015-09-11 07:44:00 +02:00
Michael Layzell
f20336e5e1 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Nicholas Nethercote
2cbfe95103 Bug 1203811 - Clarify two error messages in tools/power/rapl. r=heycam. 2015-09-10 23:12:31 -07:00
Nicholas Nethercote
9d86749340 Bug 1203834 - Fix's rapl's handling of unsupported power domains. r=glandium.
The "gpu" and "ram" domains aren't supported by all platforms. rapl has a
special constant |kUnsupported_j| to represent this on Linux, but I
accidentally have a minus sign in front of it in several places, which means
that instead of printing "n/a" for unsupported planes we always print "1.0".

I think this happened because I used to hardwire -1 in there and then I later
changed it to a constant but forgot to remove the minus signs.

It sure would be nice to have automated testing for this stuff, but I don't see
how to do it.
2015-09-10 23:12:20 -07:00
Julien Pagès
a112137856 Bug 1200293 - mach target for mozregression. r=ahal 2015-09-05 18:27:23 +02:00
Wes Kocher
c31674018e Backed out changeset e1833c2684f0 (bug 1079858) for windows xpcshell failures CLOSED TREE 2015-09-08 12:58:03 -07:00
Ben Hearsum
8c06fb79f0 bug 1079858: switch to SHA-2 authenticode signatures. r=catlee 2015-09-08 10:44:17 -04:00
Nicholas Nethercote
40f990efe4 Bug 1201811 (part 2) - Don't print distribution stats if there was only 1 sample. r=erahm. 2015-09-04 01:45:13 -07:00
Nicholas Nethercote
03f39cb4d5 Bug 1201811 (part 1) - Don't use integer arithmetic when summing totals in rapl. r=erahm. 2015-09-04 01:04:46 -07:00
Chris Peterson
2ea092908d Bug 1200450 - Add libffi, dtoa, openaes, and android/thirdparty to ThirdPartyPaths.txt. r=ehsan 2015-08-31 12:00:35 -07:00
Gregory Szorc
886bd2a94b Bug 1195445 - Update host key fingerprint for bugzilla.mozilla.org
The certificate was updated to a SHA-2 certificate.

DONTBUILD (NPOTB)
2015-09-01 17:52:46 -07:00
Xidorn Quan
a00d5ba2f9 Bug 1200458 - Skip permission check for .hgrc on Windows in hgsetup wizard. r=gps DONTBUILD 2015-09-01 10:22:45 +10:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Nicholas Nethercote
385ef91694 Bug 1198334 (part 0) - Tighten up warnings-as-errors usage in tools/power/. r=glandium. 2015-08-27 20:40:44 -07:00
Benoit Girard
b95014ac38 Bug 1122721 - Don't call pthread_get_stackaddr_np during sampling. r=mstange 2015-08-25 18:03:32 -04:00