Commit Graph

1751 Commits

Author SHA1 Message Date
Wes Kocher
42783ff4d5 Backed out changeset 0ea0832d052d (bug 1079858) for causing bug 1230631 a=backout 2015-12-04 14:58:55 -08:00
Mike Conley
64e29b6869 Bug 1193838 - Allow ProfileGatherer to gather profiles from exiting processes. r=BenWa 2015-08-18 14:57:35 -04:00
Mike Conley
339480d36b Bug 1193838 - Expose ProfileGatherer as an nsISupports through nsIProfiler for process parent actors. r=BenWa
We need to let ContentParent and PluginModuleParent get a reference to the ProfileGatherer
during the window of time that we're profiling so that if they start to die (the actor is
starting to go away), they have a gatherer they can send their last profile data to.
2015-08-12 14:20:26 -04:00
Mike Conley
101cff675a Bug 1193838 - Make ProfileGatherer exist during the lifetime of a GeckoSampler. r=BenWa 2015-12-01 13:01:27 -05:00
Alex Jordan
5a141c9b7c Bug 1228580 - ./mach mercurial-setup should use ~ to set up extension paths, not my literal home directory. r=gps 2015-11-27 14:51:50 -08:00
Ben Hearsum
1e7cc8088d Bug 1079858: Enable SHA2 signing for windows. r=catlee rs=rstrong 2015-12-02 14:12:37 -05:00
Bogdan Postelnicu
ae2ec1258a Bug 1228339 - Initialize members in class. r=jseward 2015-12-02 02:50:00 +01:00
Nigel Babu
123cc1e222 Backed out changeset 0d6721e243d3 (bug 1228339) for build bustage
CLOSED TREE
2015-12-02 14:09:40 +05:30
Bogdan Postelnicu
3de652db18 Bug 1228339 - initialize memebers in class. r=jseward 2015-11-26 07:03:00 +01:00
Mike Hommey
f55b90feaf Bug 1228444 - Rename DIST_FILES to FINAL_TARGET_PP_FILES. r=gps
This makes it clearer that really it's the same thing as FINAL_TARGET,
with preprocessing.
We still keep DIST_FILES in backend.mk because it's shorter and doesn't
really matter.
2015-12-01 08:25:22 +09:00
Mike Hommey
374f9066b3 Bug 1228444 - Don't silence "no preprocessor directives found" warnings for DIST_FILES. r=gps
and move files without preprocessor directives to FINAL_TARGET_FILES.
2015-12-01 08:25:22 +09:00
Mike Conley
2a4b16e3fd Bug 1103094 - Start profiling subprocesses if the parent process is already profiling. r=BenWa 2015-08-11 14:26:27 -04:00
Mike Conley
9088893caa Bug 1103094 - Add accessor for nsIProfilerStartParams to nsIProfiler. r=BenWa 2015-08-11 14:26:09 -04:00
Mike Hommey
dc8d7f5659 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Benoit Girard
3196e88019 Bug 989499 - Part 2: Use FramePointerStackwalk on windows. r=rjmuizel 2014-03-28 16:31:15 -04:00
Jeff Muizelaar
5a7e010a46 Bug 989499 - Part 1: Add a way to get the stack top. r=BenWa 2014-03-28 16:18:24 -04:00
Andreas Tolfsen
fc79aaaddd Bug 1223459: Serve documentation over HTTP in mach doc
Introduces new flag --http [ADDRESS] that spins up an HTTPD serving
`outdir'.  By default it will spin up a server on 0.0.0.0:6666.

r=ahal
2015-11-10 20:37:38 +00:00
Chris Peterson
ffcdc4b4af Bug 1223262 - Fix -Wunreachable-code warning in tools/profiler. r=BenWa
tools/profiler/core/platform-linux.cc:363:11: warning: code will never be executed [-Wunreachable-code]
2015-11-11 21:18:20 -08:00
Chris Peterson
1696ab0e92 Bug 1222887 - Suppress -Wunreachable-code warning in tools/power. r=njn
tools/power/rapl.cpp:844:5 [-Wunreachable-code] code will never be executed

clang reports a -Wunreachable-code warning for sigemptyset() because Darwin's sigemptyset() is a macro that always returns 0. Thus `if (sigemptyset(&sa.sa_mask) < 0)` is always false and `Abort("sigemptyset() failed")` is never called. Linux's sigemptyset() can return 0 or -1. The extra parens around (0) suppress the clang warning.
2015-11-09 01:03:54 -08:00
Andrew Halberstadt
c3cf79f01a Bug 1220789 - Generalize |mach build-doc| for any arbitrary sphinx projects; rename to |mach doc|, r=gps
Now, running |mach doc <path/to/project>| will generate the sphinx based docs of the project and open them
in the default browser. Mulitple doc paths can be supplied at a time. E.g:
./mach doc testing/mozbase
2015-11-03 15:39:50 -05:00
Gregory Szorc
8321c5e910 Bug 1213959 - Set SHELL in Read the Docs environment; r=ted
The Read the Docs environment doesn't have SHELL defined. This causes
mach.mixin.process's import to fail, as it insists on finding an active
shell. While we could fix mach.mixin.process to not raise if the
variable is not set, this is a bit more work and has wider build system
and mach implications. So we employ a quick hack instead.

DONTBUILD (NPOTB)
2015-11-04 08:26:26 -08:00
Birunthan Mohanathas
f6aa64ea3b Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Wes Kocher
0610613ed6 Bug 1218903 - Update bmo fingerprint. r=fubar, a=Tomcat 2015-10-27 10:50:45 -07:00
Kan-Ru Chen
ab73f1ef6b Bug 1216970 - Make the copying more obvious in ProfilerImpl::GetStacktrace. r=froydnj 2015-10-23 11:43:00 +08:00
Nathan Froyd
9c5965b035 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
e504437747 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
21ee9a741e Bug 1214924 - Add "WindowServer" and "kernel" processes to |mach power|'s output. r=BenWa. 2015-10-16 14:01:22 +11:00
Gregory Szorc
d7ba605f47 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
c09f640338 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
4587311789 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
1c258c6b0b 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
f269bc5727 Backed out changeset 8f489e406701 (bug 822135) for m(dt) failures CLOSED TREE 2015-10-02 16:07:43 -07:00
Nick Fitzgerald
182cb6cd28 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
90ae202f05 Bug 822135 - Fix nsProfiler observer strong reference. r=ehsan 2015-10-02 10:57:03 -04:00
Wes Kocher
2f8452494f 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
4cd0000375 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
5984af9f76 Bug 875605 - Add tests to check-moz-style. r=ms2ger 2013-05-26 09:42:31 -04:00
Benoit Girard
e359f339b0 Bug 875605 - Add HG + update style rules for moz-check-style. r=ms2ger 2013-05-25 19:33:36 -04:00
Benoit Girard
718761d900 Bug 875605 - Import check-webkit-style. r=ms2ger 2013-05-25 19:23:47 -04:00
Ted Mielczarek
0f5bf4a8d6 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
06e7c5d2ac 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
c9a3d26d2a 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
e180240230 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
1f58dae0e0 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
10315ff948 Bug 1196947 - Performance tools should display a message in private browsing, r=jsantell 2015-09-26 06:21:09 +02:00
Nathan Froyd
db6b82828e 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
f33d583d49 Bug 1189881 - Move GeckoJavaSampler::getProfilerTime out of AndroidJNI.cpp. r=jchen 2015-09-17 16:17:26 -05:00
Nick Fitzgerald
d89a90562f 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
4d32983d16 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
f0c22e1475 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