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

4276 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 3ed98bee2a merge mozilla-inbound to mozilla-central a=merge 2017-02-10 13:49:56 +01:00
Wes Kocher 30d9ef4d29 Merge m-c to autoland, a=merge
MozReview-Commit-ID: D76dMYwFRUQ
2017-02-09 17:06:59 -08:00
Wes Kocher e27ab18a24 Merge autoland to central, a=merge
MozReview-Commit-ID: Cu9iXbDAS7t
2017-02-09 16:36:11 -08:00
Nicholas Nethercote 609674c984 Bug 1337189 (part 12) - Move s{,Last}FrameNumber from Sampler.cpp to platform.cpp. r=mstange.
--HG--
extra : rebase_source : 95bc147a4a8e750ee3c0dbd92b55cca194a93639
2017-02-07 15:56:48 +11:00
Nicholas Nethercote 1ad49d6d4d Bug 1337189 (part 11) - Move the Linux-specific fields out of Sampler. r=mstange.
--HG--
extra : rebase_source : 09797087c38c99be18e59abdfff170115e7fbba6
2017-02-07 15:47:01 +11:00
Nicholas Nethercote aaa8c223f7 Bug 1337189 (part 10) - Move entrySize_ out of Sampler. r=mstange.
--HG--
extra : rebase_source : 599be59343311c421b00c6bd7e0674175dc57445
2017-02-07 15:22:52 +11:00
Nicholas Nethercote 5be61e6eca Bug 1337189 (part 9) - Move mThreadNameFilters and mFeatures out of Sampler. r=mstange.
Doing so made it clearer that gThreadNameFilters was being accessed from
multiple threads without synchronization, so I added a Mutex for it.

--HG--
extra : rebase_source : 60d9f4df76ed04cb5ce1b8232bbeb9c795b66535
2017-02-07 15:22:27 +11:00
Nicholas Nethercote 0b9183e6ac Bug 1337189 (part 8) - Move mGatherer out of Sampler. r=mstange.
--HG--
extra : rebase_source : a366d877712b3b5761c4fd699bc39bd8ecbd4757
2017-02-07 14:24:39 +11:00
Nicholas Nethercote a198b373b1 Bug 1337189 (part 7) - Move Startup(), Shutdown(), RegisterCurrentThread(), UnregisterCurrentThread() out of Sampler. r=mstange.
This is a good example of code that's in Sampler for no particular reason.

--HG--
extra : rebase_source : 29436e650a154c519029c05cad379e5226043af9
2017-02-07 14:24:33 +11:00
Nicholas Nethercote 52ef6d2984 Bug 1337189 (part 6b) - Move declarations of gSampler. r=mstange.
--HG--
extra : rebase_source : 03ec3604f8e54aa501142cf218c4673504caf34a
2017-02-07 17:27:54 +11:00
Nicholas Nethercote a76c2d28fe Bug 1337189 (part 6) - Move sRegisteredThreads{,Mutex} out of Sampler. r=mstange.
They don't particularly belong there, and Sampler will be going away eventually
anyway.

--HG--
extra : rebase_source : 4faab111925848215f7e8db8244b33ee46c5396c
2017-02-07 14:16:26 +11:00
Nicholas Nethercote e52a6ab24b Bug 1337189 (part 5) - #include Sampler.cpp from platform.cpp. r=mstange.
I am planning to merge Sampler into platform.cpp, so Sampler.cpp will
disappear. This change will make that easier, because things that temporarily
need to be visible in both files won't need to be declared in a header.

--HG--
extra : rebase_source : f0fa4751f6ead945c1a00a17dbc9a7d3dc870e4b
2017-02-07 14:15:30 +11:00
Nicholas Nethercote b20ef2d766 Bug 1337189 (part 4) - #include platform-*.cc from platform.cpp. r=mstange.
platform-*.cc and platform.cpp belong together conceptually, and combining them
into a single compilation unit makes it easier to share things and avoids the
need for some declarations in headers.

The patch also removes old_sigsave_signal_handler_ which is a long-dead field
that clang now detects and complains about.

--HG--
extra : rebase_source : 092a7ca608415b888607dba38ad5296787af824e
2017-02-07 16:09:39 +11:00
Nicholas Nethercote 4b5d7166d9 Bug 1337189 (part 3) - Remove profiler_responsiveness. r=mstange.
All it does is set sLastTracerEvent, which is never read.

--HG--
extra : rebase_source : 13182caaa8d6e38967c7b667992a9d64029e38d7
2017-02-07 14:15:10 +11:00
Nicholas Nethercote f130ae80cb Bug 1337189 (part 2) - Add more threadedness assertions and comments to the profiler. r=mstange.
This patch adds NS_IsMainThread() assertions to all main-thread-only
profiler_*() functions that currently lack them, and adds comments to those
that run on multiple threads. As a result, it's now clear for every
profiler_*() function which threads it runs on.

--HG--
extra : rebase_source : 9a1b00f040a7bfc477ceee701ad6af165b468f4e
2017-02-06 14:31:38 +11:00
Nicholas Nethercote 445a4a42de Bug 1337189 (part 1) - Add a comment about sStartTime. r=mstange.
--HG--
extra : rebase_source : ab709feba5a3551514079c9212ab98b32cd293f7
2017-02-06 14:30:33 +11:00
Nicholas Nethercote b22d13f689 Bug 1126576 (part 2) - Remove redundant check from profiler_init(). r=mstange.
--HG--
extra : rebase_source : 24b458b51352cdd578812c8db8c3fb245e72bf42
2017-02-03 10:34:36 +11:00
Nicholas Nethercote b59f5ef845 Bug 1126576 (part 1) - Remove refcounting from PseudoStack. r=mstange.
PseudoStack lifetimes are predictable because they match thread lifetimes.
There is no need for refcounting.

This patch:

- Removes the refcounting, along with StackOwningThreadInfo.

- Makes PseudoStack's ctor and dtor public, and removes the Create() method.

- Changes popAndMaybeDelete() to pop().

- Removes PseudoStack::isEmpty(), which is dead.

- Adds various comments to make clear how things now work.

--HG--
extra : rebase_source : 3a135fcf137997a6fbc09b408ff28ee846217e63
2017-02-03 10:34:35 +11:00
Kartikaya Gupta 38e1888e52 Bug 1338220 - Add webrender dirs to list of third-party code. r=sylvestre
MozReview-Commit-ID: 9QPK6OT3VwX

--HG--
extra : rebase_source : 7fbc104f4aba3604e27cfad57d700b7099e39fd9
2017-02-09 12:14:09 -05:00
Sylvestre Ledru d0c48d7649 Bug 1338216 - Update the ignored directory for mtransport r=jesup
MozReview-Commit-ID: HiXfrMnPkh9

--HG--
extra : rebase_source : 6e18d49dada70abe1fbb202f2d4e280f46b3487f
2017-02-09 18:03:47 +01:00
Sylvestre Ledru 11c1660445 Bug 1338193 - Add media/webrtc/signaling/src/sdp/sipcc/ to the list of thirdparty code r=bwc
MozReview-Commit-ID: AJYDkI0aHhq

--HG--
extra : rebase_source : b1bc1212ecd6323965abfe82946240bb5faf72d1
2017-02-09 17:21:18 +01:00
Nicholas Nethercote 3466173cca Bug 1337189 (part 26) - Remove Sampler.cpp. r=mstange.
Sampler's constructor and destructor are inlined into profiler_{start,stop}(),
respectively. A trivial Sampler class is left behind (now in platform.cpp)
because there are still numerous gSampler null checks, which I will remove in a
follow-up bug.

PseudoStack::flushSamplerOnShutdown() moves into platform.cpp. MAXPATHLEN is
unused and is deleted.
2017-02-09 17:09:39 +11:00
Nicholas Nethercote 7edc648995 Bug 1337189 (part 25) - Move streaming/saving code out of Sampler. r=mstange. 2017-02-09 17:04:51 +11:00
Nicholas Nethercote f7e99d0285 Bug 1337189 (part 24) - Move RegisterThread() out of Sampler and rename it. r=mstange.
The new name is MaybeSetProfile(), which better reflects what it does.
2017-02-09 15:40:12 +11:00
Nicholas Nethercote 78a76af493 Bug 1337189 (part 23) - Move PlatformData out of Sampler. r=mstange. 2017-02-09 15:04:36 +11:00
Nicholas Nethercote 6462cc823f Bug 1337189 (part 22) - Move CanNotifyObservers() out of Sampler. r=mstange. 2017-02-09 15:01:27 +11:00
Nicholas Nethercote ead0668be5 Bug 1337189 (part 21) - Remove Sampler::SizeOfIncludingThis(). r=mstange. 2017-02-09 15:00:29 +11:00
Nicholas Nethercote 7976b574cf Bug 1337189 (part 20) - Move Start() and Stop() out of Sampler. r=mstange.
The patch also renames them as PlatformStart() and PlatformStop() to make it
clearer they are platform-specific.
2017-02-09 09:02:41 +11:00
Wes Kocher b2e0ca9ab0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 4AoCDs2oeJ0
2017-02-09 17:05:15 -08:00
Nicholas Nethercote b02431fa99 Bug 1337189 (part 19) - Move Tick() and GetThreadHandle() out of sampler. r=mstange.
The patch also removes InplaceTick(), which wasn't serving any useful purpose.
2017-02-09 09:02:41 +11:00
Nicholas Nethercote 36fb426d68 Bug 1337189 (part 18) - Remove Sampler::GetBacktrace(). r=mstange.
The patch also removes NewSyncProfile() by inlining it at its single call site.
2017-02-09 09:02:41 +11:00
Nicholas Nethercote 55861695b6 Bug 1337189 (part 17) - Remove Sampler::FlushOnJSShutdown(). r=mstange.
This means PseudoStack::flushSamplerOnJSShutdown() should now work when called
off-main-thread.
2017-02-09 09:02:41 +11:00
Nicholas Nethercote 8796cadf65 Bug 1337189 (part 16) - Move all the bools out of Sampler. r=mstange.
Two of them (mAddMainThreadIO and mPrivacyMode) are now local variables within
profiler_start(), which is nice.

This change also lets us get rid of four sIs* variables.
2017-02-08 12:01:41 +11:00
Nicholas Nethercote 7cad4eb2a3 Bug 1337189 (part 15) - Move mBuffer out of Sampler. r=mstange. 2017-02-08 11:36:05 +11:00
Nicholas Nethercote f31b74a847 Bug 1337189 (part 14) - Move active_ and paused_ out of Sampler. r=mstange. 2017-02-08 11:12:26 +11:00
Nicholas Nethercote d8b9dc3bae Bug 1337189 (part 13) - Move interval_ out of Sampler. r=mstange. 2017-02-08 09:06:16 +11:00
Nicholas Nethercote d6624d0e50 Bug 816598 - Add a memory reporter for the Gecko Profiler. r=mstange,jseward.
It's fairly straightforward, and measures the important parts of:

- Sampler, PseudoStack, ProfileBuffer, ThreadInfo.

- LUL, PriMap, SecMap

Coverage isn't perfect, but it gets the major things I found via DMD on Linux.

Example output in about:memory:

├──151.21 MB (49.73%) -- profiler
│  ├──141.49 MB (46.53%) ── lul
│  └────9.72 MB (03.20%) ── sampler

--HG--
extra : rebase_source : 67d2ada42aead43f68f5100a08204a1d1f1cfceb
2017-01-30 12:37:26 +11:00
Tom Schuster aeaf8fb38c Bug 1330006 - Land and enable self-hosted JS eslint plugin. r=till,mossop 2017-02-07 21:58:21 +01:00
Julian Seward 11b9557938 Bug 1328385 - Replace the profile entry tag with an enum. r=kvijayan.
--HG--
extra : rebase_source : 4e8de98fc4e89a772e8fdc2261e0ebb8d30e2642
2017-02-07 16:47:28 +01:00
Wes Kocher 848c29538a Merge inbound to central, a=merge
MozReview-Commit-ID: 2yQjOIMCCiO
2017-02-06 17:45:21 -08:00
Julian Seward eed29460b1 Bug 1245477 - Crashes in lul::DerefTUW. r=nfroyd.
--HG--
extra : rebase_source : 647ea253f987720f3a641f382426de3d8ad1d1d4
2017-02-06 09:03:38 +01:00
Nicholas Nethercote 46b88ab7a6 Bug 1336326 (part 3) - Remove SamplerRegistry. r=mstange.
We only have one global Sampler, gSampler, and so SamplerRegistry is just an
unnecessary and obfuscating wrapper around it.

--HG--
extra : rebase_source : b675c414d0081dab2cd7dac864ffdff5070afe7d
2017-02-03 13:18:02 +11:00
Nicholas Nethercote 7302f2a052 Bug 1336326 (part 2) - Make sRegisteredThreadsMutex a StaticMutex. r=mstange.
StaticMutexes don't need to be created or destroyed, which avoids the need for
checking if they still exist.

This patch also adds locking to a few functions that lacked it. Every access to
sRegisteredThreads is now protected appropriately.

--HG--
extra : rebase_source : 2ea1d7372652ddd532e6e98c167be0997df33f07
2017-02-03 13:11:34 +11:00
Nicholas Nethercote e68e4a6f44 Bug 1336326 (part 1) - Remove Sampler::GetRegisteredThreads(). r=mstange.
Sampler::sRegisteredThreadsMutex is public. Might as well make
Sampler::sRegisteredThreads public too. This allows the getter to be removed,
and makes the code a little easier to read.

--HG--
extra : rebase_source : 4ff3ba92c9d74ae1b10a2be227ca15f61d15bee2
2017-02-03 11:27:14 +11:00
Carsten "Tomcat" Book ec7a38a1f8 Merge mozilla-central to autoland 2017-02-06 13:09:24 +01:00
Mark Banner e5c2479848 Bug 1336070 - Enable eslint no-undef for browser/, apart from components/ and base/content/. r=mossop
MozReview-Commit-ID: CJtpm8zlLxa

--HG--
extra : rebase_source : c6a834d5aaba0f84f5e147333085883de1a118e8
2017-02-02 09:08:42 +00:00
Greg Mierzwinski d034427bd2 Bug 1301197 - Add xpcshell code coverage to linux64-jsdcov and the 'coverage' mozinfo flag. r=jmaher
This patch makes it possible to collect code coverage for xpcshell tests using the linux64-jsdcov build. It also enables the use of a 'coverage' flag to disable tests when they are instrumented with the js debugger for code coverage. Lastly, it uses the 'coverage' flag to disable certain tests.

MozReview-Commit-ID: 97VFkJmlwQn

--HG--
extra : rebase_source : 26c841f5a68f927889c0903e701bfde4b7ca84ac
2016-11-08 15:57:21 -05:00
Sebastian Hengst c7958d1860 Backed out changeset fc7f502a43a1 (bug 1336070) 2017-02-03 13:26:41 +01:00
Mark Banner d5d0c83fda Bug 1336070 - Enable eslint no-undef for browser/, apart from components/ and base/content/. r=mossop
MozReview-Commit-ID: CJtpm8zlLxa

--HG--
extra : rebase_source : 54aaa749c31f7fca7ccec46bfa712f9aa0f65a57
2017-02-02 09:08:42 +00:00
Shih-Chiang Chien e452abf554 Bug 1336004 - add missing header file for TaskTracer. r=cyu
MozReview-Commit-ID: 11cMTxBWCRl

--HG--
extra : rebase_source : d8fb52e1b4d81f72fbb674a19b983a0e376fabde
2017-02-02 12:00:58 +08:00