Jeff Muizelaar
adc4a0be22
Bug 745864 - make SAMPLE_LABELS per line instead of per independent scope. r=bgirard a=blassey
...
--HG--
extra : rebase_source : 1d09f95da1677e9d13932017894f443d02aa40af
2012-04-17 16:21:23 -04:00
Ehsan Akhgari
54b5ee7178
Bug 735262 - Fix the compilation error on profiling builds; r=me a=npotb
2012-04-18 12:55:48 -04:00
Jeff Muizelaar
1fcd79bd68
Bug 739510. JSObjectBuilder: Speed up construction of char * properties. r=ehsan
...
This eliminates two additional copies: NS_ConvertASCIItoUTF16 and
PromiseFlatString by constructing the JSString directly. It is also designed so
that literal strings will have their strlen computed at compile time.
--HG--
extra : rebase_source : 05169480e6ffbf42a9f5cc131dc775c699841b19
2012-03-26 23:35:28 -04:00
L. David Baron
5e31c7d89a
Fix compilation error by fixing up more code. (Bug 735262) r=jrmuizel
2012-04-16 15:32:11 -07:00
Benoit Girard
5df1872126
Bug 745556 - Include shared library info in text profile dump for android symbolication. r=jmuizelaar
2012-04-16 09:32:18 -04:00
Jeff Muizelaar
60fa9c5bc9
Bug 735262. Make leaf address printing saner. r=bgirard
...
We don't need to store an mLeafAddress field for each profile entry.
Instead just add a 'l' tag for the leaf entries.
--HG--
extra : rebase_source : e8e578d000a672f8d198541b4c00ff8ab570d95e
2012-04-13 14:56:51 -04:00
Benoit Girard
18ebb8783e
Bug 719536 - Expose shared library offsets for proper symbolication. r=jmuizelaar
2012-04-13 16:33:53 -04:00
Jeff Muizelaar
71ea009d78
Backout acefe9a94a63 - Bug 735262 because of B2G breakage.
2012-04-13 14:55:13 -04:00
Jeff Muizelaar
6d29abbb71
Bug 735262. Make leaf address printing saner. r=bgirard
...
We don't need to store an mLeafAddress field for each profile entry.
Instead just add a 'l' tag for the leaf entries.
2012-04-10 11:48:55 -04:00
Ye Kaiqi
c980fe2705
Bug 739072 - Change spelling error "thoes" to "those". r=coop
2012-04-09 18:30:34 -04:00
Brian Smith
7963f7d566
Bug 736898: Avoid signed/unsigned comparisons in tools/profiler, r=bgirard
...
--HG--
extra : rebase_source : 53eadd48e29fc1aae143b0480bcb573a392e1130
2012-04-04 18:56:25 -07:00
Vladan Djeric
da96529e15
Bug 741242 - Fix profiler address output broken by bug 739800 on Mac 64 bit. r=bgirard
2012-04-02 14:34:39 -04:00
Vladan Djeric
77750a60b3
Bug 739800 - Force all profiler l-tag addresses to have a 0x prefix. r=bgirard
2012-03-28 19:01:13 -04:00
Vladan Djeric
8b67925e13
Bug 735829 - Very minor fix: add quotes around PDB name string
2012-03-26 22:02:46 -04:00
Ehsan Akhgari
6711cf7582
Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
...
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
2012-03-16 14:08:03 -04:00
Markus Stange
694e2bfbdc
Bug 733861 - Use std::ostreams for profile stringification. r=BenWa
2012-03-23 20:09:27 +01:00
Ehsan Akhgari
62c70a9478
Backout changeset 11b6f37603ce (bug 734302) for Android bustage
2012-03-23 15:01:14 -04:00
Ehsan Akhgari
63b59609ed
Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
...
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
2012-03-16 14:08:03 -04:00
Marco Bonardo
d525c9e71e
Merge last green PGO from inbound to central
2012-03-23 12:49:57 +01:00
Marco Bonardo
8b41ce4e56
Merge central to inbound
2012-03-23 02:02:03 +01:00
Ehsan Akhgari
262609cd3f
Bug 734302 - Part 4: Fix the profiling builds on Mac and Windows; r=BenWa
2012-03-22 12:36:45 -04:00
Ryan VanderMeulen
52ec83db25
Backout f42ea2a158e4(bug 733861) due to build bustage on all platforms.
2012-03-22 19:10:16 -04:00
Markus Stange
caa10cfffe
Bug 733861 - Use std::ostreams for profile stringification. r=BenWa
2012-03-22 23:40:33 +01:00
Markus Stange
0c06d2b2f0
Bug 731272 - Add the current instruction to the top of the stack. r=jrmuizel
2012-03-22 23:31:56 +01:00
Markus Stange
4acb6723d2
Bug 731272 - Don't skip the topmost stack frame. r=jrmuizel
2012-03-22 23:30:37 +01:00
Ehsan Akhgari
ace3558298
Bug 738302 - Avoid building the libunwind docs so that b2g can be built again; r=BenWa
2012-03-22 17:39:00 -04:00
Matt Brubeck
8fb1f2f223
Back out c61855cb4558 (bug 734302) because of build failure on Android
...
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml.in => mobile/android/base/resources/menu-v11/gecko_menu.xml
rename : mobile/android/base/resources/menu/gecko_menu.xml.in => mobile/android/base/resources/menu/gecko_menu.xml
2012-03-21 16:26:38 -07:00
Serge Gautherie
29bbc8c329
Bug 712552. (Av1) Remove MSVC6 support from trace-malloc. r=dbaron.
...
DONTBUILD (comment-only).
2012-03-23 02:58:24 +01:00
Ehsan Akhgari
12cffcd90e
Bug 734302 - Part 3: Add a menu item for toggling the profiler on mobile; r=BenWa,dougt
...
--HG--
rename : mobile/android/base/resources/menu-v11/gecko_menu.xml => mobile/android/base/resources/menu-v11/gecko_menu.xml.in
rename : mobile/android/base/resources/menu/gecko_menu.xml => mobile/android/base/resources/menu/gecko_menu.xml.in
extra : rebase_source : 9a4499ff99d661924e1eb09280925ad123ecd948
2012-03-16 14:08:03 -04:00
Ehsan Akhgari
05b9929ddd
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
5fc5ba4b3e
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
e357951839
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
9343cd86e7
Bug 735829. Report PDB filename in chrome hang reports. r=ehsan
2012-03-19 19:05:25 -04:00
Jacek Caban
7489f3e972
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
63c588b612
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
5ce73a5df8
Bug 734335 - Only build SPS on supported platforms. r=bgirard,r=khuey
2012-03-13 09:48:00 +01:00
Benoit Girard
43fd935584
Bug 734691 - Change profiler output format to support threads. r=mstange
2012-03-12 10:58:40 -04:00
Benoit Girard
083016c39d
Bug 734691 - Move Stack to ThreadProfile since it's thread specific. r=mstange
2012-03-12 10:58:37 -04:00
Benoit Girard
187dd54d32
Bug 734691 - Rename Stack/Profile to imply their thread specific. r=mstange
2012-03-12 10:58:33 -04:00
Benoit Girard
31a7bb0e5d
Bug 732806 - Fix profiling stack end detection. r=jmuizelaar
2012-03-12 10:57:36 -04:00
Benoit Girard
21ea909e1a
Bug 734707 - Fix Jank profiling feature side effects. r=jmuizelaar
2012-03-12 10:56:33 -04:00
Vladan Djeric
31d77b0c5e
Bug 712109 - Implement chrome hang reporting on profiling branch. r=ehsan
2012-03-12 07:07:05 -04:00
Benoit Girard
d2d06bae65
Backout changeset a76566398d36
2012-03-11 12:03:45 -04:00
Benoit Girard
28264c98df
Backed out changeset 5f5fc6a1133e
2012-03-11 12:03:05 -04:00
Benoit Girard
7e45a83a39
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
4bdad762cf
Bug 734691 - Part 1: Rename Stack/Profile to imply their thread specific. r=mstange
2012-03-10 23:08:11 -05:00
Jeff Muizelaar
38361289f8
Bug 726369 - Profiler: Make the circular buffer reader code safer. r=BenWa
2012-02-11 18:56:18 -05:00
Jeff Muizelaar
71f2b82d61
Bug 723711. Return the profile data as JS objects. r=bgirard
2012-02-02 16:57:20 -05:00
Jeff Muizelaar
790c1d148c
Backout c433e993506b
2012-03-09 11:21:43 -05:00
Jeff Muizelaar
52ab95122e
Bug 723711. Return the profile data as JS objects. r=bgirard
2012-02-02 16:57:20 -05:00
Jeff Muizelaar
06af852226
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
5faf7e80be
Bug 733792 - Leave original symbol addresses in the profile report. r=bgirard
2012-03-09 16:20:03 +01:00
Markus Stange
be4a8eaafd
Bug 733792 - Add nsIProfiler::getSharedLibraryInformation. r=bgirard
2012-03-09 16:20:00 +01:00
Justin Lebar
62dbeeb1ab
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
9af1e3b547
Bug 708733 - Profiler: Only use leaf data on android ARM. r=ehsan
2012-02-11 10:49:16 -05:00
Benoit Girard
a535cc0329
Bug 730302 - Fix GetMarker code in Table::Tick. r=mstange
2012-02-24 11:51:13 -05:00
Jeff Muizelaar
a782835cb2
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
be2a314e45
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
513b889520
Bug 721780 - Rename XRE_Main to something more useful; r=BenWa
2012-01-31 10:10:05 -05:00
Ehsan Akhgari
0222be76c4
Bug 721564 - Get module information for the profiler on Windows; r=BenWa
2012-01-26 19:03:42 -05:00
Jeff Muizelaar
223038ca63
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
24d33794fd
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
56d89518ed
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
Matt Brubeck
897e5d3f77
Merge last green changeset from inbound to mozilla-central
2012-01-19 10:37:48 -08:00
Tim Taubert
d2339616cf
merge m-c to fx-team
2012-01-19 12:10:03 +01:00
Robert Strong
9e2977f169
RelEng patch - Bug 660038 - Remove channel switching support. r=nthomas
2012-01-18 14:10:25 -08:00
Randell Jesup
460f47911e
Bug 712224: Make jprof generate output for 'cleopatra' backend. rs=dbaron DONTBUILD
2012-01-18 00:11:00 -05:00
Jeff Muizelaar
a47ca866d2
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
0ede9f8a33
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
Matt Brubeck
b79b1e58d3
Back out 88733ce1bef3 (bug 718440) because of Windows build failure
2012-01-17 15:15:47 -08:00
Jeff Muizelaar
315982723f
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
Benoit Girard
fea80077db
Bug 719239 - Gecko Profiler: Stackwalk feature isn't reported properly. r=ehsan
2012-01-18 17:50:30 -05:00
Ehsan Akhgari
363f143957
Bug 718681 - Correct the preprocessor condition in mozilla_sampler_get_features; r=BenWa
2012-01-17 11:49:40 -05:00
Ehsan Akhgari
44d37bd2b2
Bug 718026 - Only walk the stack on profiling builds; r=jrmuizel
2012-01-17 11:49:05 -05:00
Ehsan Akhgari
9e5672bb2c
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
77c78dd19f
Back out 2273e0264d4a (bug 718025) for Windows build failure
2012-01-16 18:24:18 -08:00
Ehsan Akhgari
c625f6071d
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
fe67fd21f8
Bug 717059 - Fix nsProfiler::GetFeatures() to handle zero length and remove warning. r=jmuizelaar
2012-01-14 10:59:09 -05:00
Jeff Muizelaar
53360cb95c
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
06a1a6d49a
Bug 717769 - Include sps_sampler.h if __linux__, not XP_UNIX. r=bgirard
2012-01-14 15:32:53 -05:00
Benoit Girard
e1d3ab2e58
Bug 717059 - Bustage fix for android. r=bustage
2012-01-12 20:36:55 -05:00
Benoit Girard
e18aae56bf
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
9808c149e8
Bug 717769 - Fix Built-in Profiler on Linux r=ehsan
2012-01-12 17:41:58 -05:00
Benoit Girard
a9cd912141
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
d00291eca5
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
b7ece3727e
Bug 715618 - SharedLibrary operator= doesn't handle self assignment properly. r=matspal
2012-01-05 18:11:29 -05:00
Jeff Muizelaar
6761075807
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
050c43af5f
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
111ea9e6d3
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
3e2715c052
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
75786a4eea
Bug 711491. Rough out SharedLibraryInfo for win32. r=bgirard
...
--HG--
extra : rebase_source : 17e182c652d3eab2d083b98a9d0f5f04fc344a87
2011-12-16 10:56:06 -05:00
Jeff Muizelaar
6971c66ca3
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
cb136669f0
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
7643f1ffb2
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
f415c3ad2b
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
Ehsan Akhgari
c62bdde145
Bug 713278 - Teach NS_StackWalk to walk the stack of other threads too on Windows; r=dbaron
2011-12-23 18:14:09 -05:00
Jacek Caban
fefcd2a951
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
d2ff02e5f0
Bug 713232 - Fix the hang in the built-in profiler on Windows; r=BenWa
2011-12-24 12:11:26 -05:00
Jeff Walden
2cc32b18f2
Bug 711799 - Fix a few implicit-declaration warnings in trace-malloc. r=dbaron
...
--HG--
extra : rebase_source : 16fe9eb68d2db1488d89af4001e7d316cb110330
2011-12-17 22:56:55 -05:00
Matt Brubeck
efc97fe9ac
Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures
2011-12-19 10:43:08 -08:00