Commit Graph

141 Commits

Author SHA1 Message Date
Ehsan Akhgari
2acbdc711f 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
b7041e1d36 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
ac1638afa6 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
e8510855b8 Bug 735829. Report PDB filename in chrome hang reports. r=ehsan 2012-03-19 19:05:25 -04:00
Jacek Caban
bfee89c51b 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
f13b1e0497 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
69584e6287 Bug 734335 - Only build SPS on supported platforms. r=bgirard,r=khuey 2012-03-13 09:48:00 +01:00
Benoit Girard
6662503264 Bug 734691 - Change profiler output format to support threads. r=mstange 2012-03-12 10:58:40 -04:00
Benoit Girard
cc681a1725 Bug 734691 - Move Stack to ThreadProfile since it's thread specific. r=mstange 2012-03-12 10:58:37 -04:00
Benoit Girard
8074987f8c Bug 734691 - Rename Stack/Profile to imply their thread specific. r=mstange 2012-03-12 10:58:33 -04:00
Benoit Girard
1dbe6dfeef Bug 732806 - Fix profiling stack end detection. r=jmuizelaar 2012-03-12 10:57:36 -04:00
Benoit Girard
ba422d6daa Bug 734707 - Fix Jank profiling feature side effects. r=jmuizelaar 2012-03-12 10:56:33 -04:00
Vladan Djeric
745727778e Bug 712109 - Implement chrome hang reporting on profiling branch. r=ehsan 2012-03-12 07:07:05 -04:00
Benoit Girard
d92c873210 Backout changeset a76566398d36 2012-03-11 12:03:45 -04:00
Benoit Girard
232292886c Backed out changeset 5f5fc6a1133e 2012-03-11 12:03:05 -04:00
Benoit Girard
1303b287d9 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
2f94430d85 Bug 734691 - Part 1: Rename Stack/Profile to imply their thread specific. r=mstange 2012-03-10 23:08:11 -05:00
Jeff Muizelaar
30ceaba0e5 Bug 726369 - Profiler: Make the circular buffer reader code safer. r=BenWa 2012-02-11 18:56:18 -05:00
Jeff Muizelaar
da3ad92423 Bug 723711. Return the profile data as JS objects. r=bgirard 2012-02-02 16:57:20 -05:00
Jeff Muizelaar
26be1e2326 Backout c433e993506b 2012-03-09 11:21:43 -05:00
Jeff Muizelaar
24b0fc9e1a Bug 723711. Return the profile data as JS objects. r=bgirard 2012-02-02 16:57:20 -05:00
Jeff Muizelaar
67d9b4c911 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
9aabb5464a Bug 733792 - Leave original symbol addresses in the profile report. r=bgirard 2012-03-09 16:20:03 +01:00
Markus Stange
2d39ac4870 Bug 733792 - Add nsIProfiler::getSharedLibraryInformation. r=bgirard 2012-03-09 16:20:00 +01:00
Justin Lebar
b682bbe4a5 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
44bf1f7416 Bug 708733 - Profiler: Only use leaf data on android ARM. r=ehsan 2012-02-11 10:49:16 -05:00
Benoit Girard
5e1dd84f1f Bug 730302 - Fix GetMarker code in Table::Tick. r=mstange 2012-02-24 11:51:13 -05:00
Jeff Muizelaar
ca7b485d9c 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
af561ad0ae 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
1f74b65834 Bug 721780 - Rename XRE_Main to something more useful; r=BenWa 2012-01-31 10:10:05 -05:00
Ehsan Akhgari
838b8d9023 Bug 721564 - Get module information for the profiler on Windows; r=BenWa 2012-01-26 19:03:42 -05:00
Jeff Muizelaar
dbe0e87287 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
cc4b34030c 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
e8612f5cb7 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
Jeff Muizelaar
9c9e2eed37 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
f8970f1375 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
Benoit Girard
d32ecc6766 Bug 719239 - Gecko Profiler: Stackwalk feature isn't reported properly. r=ehsan 2012-01-18 17:50:30 -05:00
Matt Brubeck
2e1e2ae3c5 Back out 88733ce1bef3 (bug 718440) because of Windows build failure 2012-01-17 15:15:47 -08:00
Jeff Muizelaar
581f54f157 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
Ehsan Akhgari
6ab21cc714 Bug 718681 - Correct the preprocessor condition in mozilla_sampler_get_features; r=BenWa 2012-01-17 11:49:40 -05:00
Ehsan Akhgari
4b674941f0 Bug 718026 - Only walk the stack on profiling builds; r=jrmuizel 2012-01-17 11:49:05 -05:00
Ehsan Akhgari
8cf10a10f9 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
a628a3cad0 Back out 2273e0264d4a (bug 718025) for Windows build failure 2012-01-16 18:24:18 -08:00
Ehsan Akhgari
e99e92a3bf 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
c69228b1fb Bug 717059 - Fix nsProfiler::GetFeatures() to handle zero length and remove warning. r=jmuizelaar 2012-01-14 10:59:09 -05:00
Jeff Muizelaar
c76621fc9a 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
b85e49c3fe Bug 717769 - Include sps_sampler.h if __linux__, not XP_UNIX. r=bgirard 2012-01-14 15:32:53 -05:00
Benoit Girard
4c47d36e24 Bug 717059 - Bustage fix for android. r=bustage 2012-01-12 20:36:55 -05:00
Benoit Girard
221bb88f4f 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
c4f05be7e1 Bug 717769 - Fix Built-in Profiler on Linux r=ehsan 2012-01-12 17:41:58 -05:00
Benoit Girard
54d3f9cc3b 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
fdb1323cce 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
da0a421974 Bug 715618 - SharedLibrary operator= doesn't handle self assignment properly. r=matspal 2012-01-05 18:11:29 -05:00
Jeff Muizelaar
c5566590dc 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
6dffa3a7cd 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
646eecefb9 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
c522a3aa3a 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
52adbcf08a Bug 711491. Rough out SharedLibraryInfo for win32. r=bgirard
--HG--
extra : rebase_source : 17e182c652d3eab2d083b98a9d0f5f04fc344a87
2011-12-16 10:56:06 -05:00
Jeff Muizelaar
8014353086 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
b48d6841f9 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
c7a02e442c 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
b136ef68e8 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
Jacek Caban
d7b500891c 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
0a885a1f71 Bug 713232 - Fix the hang in the built-in profiler on Windows; r=BenWa 2011-12-24 12:11:26 -05:00
Jacek Caban
fbea1247ba Bug 711381 - v8-support.h fails to compile on mingw r=felipc 2011-12-19 14:05:54 +01:00
Benoit Girard
c1520f35ed Bug 707185 - Programmatic control for eventtracer. r=ted.mielczarek 2011-12-04 20:53:17 -05:00
Justin Lebar
abf8bd6c79 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
2997158e04 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
9c4d4fff06 Bug 707800. Add more sampler labels. r=bgirard 2011-12-02 17:05:33 -05:00
Jeff Muizelaar
1183428944 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
8276992ccf Bug 707800. Rename SAMPLE_CHECKPOINT to SAMPLE_LABEL. r=bgirard
Checkpoint was never a good name.
2011-12-02 17:18:26 -05:00
Benoit Girard
cab16fa017 Bug 699918 - Implement profiler module. r=jmuizelaar 2011-12-07 14:48:15 -05:00
Jeff Muizelaar
274801be43 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
e377dd31f5 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
f5d059c3cb 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
Benoit Girard
fc86ae81d7 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
c6cba1f989 Back out revs 039231fd497f:5d920a44a901 properly. 2011-12-01 16:37:36 -05:00
Justin Lebar
02f303732b Back out revs d445f83ecfb1:dc9cc326cad0, because they did not back out what was intended. 2011-12-01 16:35:42 -05:00
Justin Lebar
d31f108524 Backed out changeset 039231fd497f (bug 705856) 2011-12-01 15:43:18 -05:00
Justin Lebar
120cecd569 Backed out changeset 4d56e83adfb0 (bug 698002) 2011-12-01 15:43:14 -05:00
Justin Lebar
d371a1e353 Backed out changeset 7204e7e1d4a4 (bug 698002) 2011-12-01 15:43:11 -05:00
Jeff Muizelaar
6bfdc52dd1 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
c14be23423 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
1cecafc351 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
b4e73d481b Bug 705856 - Enable SPS profiler on desktop Linux. r=BenWa 2011-12-01 14:45:45 -05:00
Jeff Muizelaar
1a1c1b8521 Bug 698002. Fixup architecture define typo. r=bgirard 2011-10-31 12:05:30 -04:00
Jeff Muizelaar
1ae7648e01 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
8481e10e35 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
c7400f255d Bug 700754 - Add Profiler responsiveness hooks. r=ted.mielczarek 2011-11-28 00:31:59 -05:00
Benoit Girard
00017ea51b Bug 699918 - Add a Profiler XPCOM Module. r=jmuizelaar 2011-11-04 17:07:50 -04:00
Benoit Girard
aeedb13ac7 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