Commit Graph

35 Commits

Author SHA1 Message Date
Nicholas Nethercote
a35e82f193 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Vanessa Gutierrez
14b47c9b19 Bug 1386186 - Added firstPaint scalar, timestamps scalar section, and tests. r=gfritzsche 2017-08-22 11:01:00 -04:00
Mike Hommey
29a132ef0d Bug 1376704 - Remove szip support in the linker. r=snorp
Since bug 1307886, we don't actually use szip anymore, and don't even
have the option to package Fennec using it. We can thus remove the
support for loading them, as well as on demand linkage.

The latter might mean we can remove the segfault handler, but it's
unclear whether this is currently working around other issues with
registering signal handlers, so we'll leave that to a followup.
2017-06-28 15:47:31 +09:00
Nicholas Nethercote
4a9adbea0f Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange.
PROFILER_MARKER is now just a trivial wrapper for profiler_add_marker(). This
patch removes it.
2017-06-22 13:40:21 +10:00
Nathan Froyd
ed16c00923 Bug 1346814 - don't export sStartupTimeline{,Desc}; r=bsmedberg
Fewer symbols exported = more better.
2017-04-03 16:02:31 -04:00
Benjamin Smedberg
acbeca42d6 Bug 1332639 - Fix nsBrowserApp.cpp and related headers to compile without the external string API, r=glandium
MozReview-Commit-ID: CQjtpA2lxAM
2017-02-27 13:39:34 -05:00
Birunthan Mohanathas
a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Gabriele Svelto
d9aa3cd009 Bug 858928 - Switch XRE_StartupTimelineRecord() from PRTime to TimeStamp. r=froydnj 2015-07-06 18:01:09 +02:00
David Rajchenbach-Teller
4b063497b2 Bug 1034514 - Record quit-application and profile-before-change in the timeline. r=froydnj 2014-08-22 07:27:00 +02:00
David Rajchenbach-Teller
3c52d43e86 Bug 936630 - Timeline event sessionRestoreInit. r=ttaubert, r=froydnj 2014-04-04 08:34:24 -04:00
Benjamin Smedberg
7137903a90 Bug 921046 - Implement a retry loop when locking the profile on startup, so that if a previous instance is shutting down, we will just start with a slight delay, r=Mossop r=froydnj 2013-10-09 10:38:35 -04:00
Gabriele Svelto
6a57e5c74c Bug 793735 - Make XRE_StartupTimelineRecord() generate TimeStamps and modify its callers to use the appropriate timers, r=nfroyd 2013-03-26 11:31:20 +01:00
Gabriele Svelto
c77313ff20 Bug 793735 - Make StartupTimeline use TimeStamp instead of PRTime and adjust nsAppStartup to cope with it, r=nfroyd 2013-03-28 11:50:16 +01:00
Nathan Froyd
5e2155bec0 Backout 61e1edc0b6bf (bug 793735), 77014412cd4a (bug 793735), and 8c5aa269c3cd (bug 793735) for botching FHR data 2013-04-09 16:25:42 -04:00
Gabriele Svelto
0d3fe8e334 Bug 793735 - Make XRE_StartupTimelineRecord() generate TimeStamps and modify its callers to use the appropriate timers, r=froydnj 2013-03-26 11:31:20 +01:00
Gabriele Svelto
909adcd2c3 Bug 793735 - Make StartupTimeline use TimeStamp instead of PRTime and adjust nsAppStartup to cope with it, r=froydnj 2013-03-28 11:50:16 +01:00
Benoit Girard
f4b3710284 Bug 851611 - Part 3: Rename headers. r=jrmuizel 2013-03-18 15:25:50 +01:00
Benoit Girard
4146042cfd Bug 851611 - Part 2: Update profiler calls. r=jrmuizel 2013-03-16 00:47:02 -04:00
Ed Morley
90c9bf415e Backed out changeset c75481a07302 (bug 851611) 2013-03-18 14:10:35 +00:00
Ed Morley
627fcd7895 Backed out changeset d195190adc48 (bug 851611) 2013-03-18 14:10:30 +00:00
Benoit Girard
0b880319f3 Bug 851611 - Part 3: Rename headers. r=jrmuizel 2013-03-18 14:41:02 +01:00
Benoit Girard
6d0dfa5b89 Bug 851611 - Part 2: Update profiler calls. r=jrmuizel 2013-03-16 00:47:02 -04:00
Rafael Ávila de Espíndola
c3b8f61ff5 Bug 815709 - Shutdown time is read in the main thread. r=ehsan.
Move code to Telemetry.cpp and s/NULL/nullptr/.
2012-12-13 12:06:27 -05:00
Benoit Girard
304e2934fa Bug 799638 - Add startup timeline markers. r=taras,glandium 2012-11-15 13:24:35 -05:00
Ryan VanderMeulen
fcc1bf0aec Backed out a57ade621efb, 2a8fef2bd228, 632ce3e7d3ef (bug 799638) for bustage. 2012-10-13 21:22:30 -04:00
Benoit Girard
cdee45646a Bug 799638 - Use timeline events as profiler startup markers. r=taras 2012-10-13 21:03:18 -04:00
Rafael Ávila de Espíndola
31da4aefc5 Bug 763361 - shutdown. sigsegv during freelibrary.
Call RecordShutdownEndTimeStamp from XRE_main. r=benjamin.
2012-07-06 18:29:53 -04:00
Mike Hommey
6944d48e82 Bug 764021 - Add Startup Timeline probe for when entering main(). r=taras,r=bsmedberg 2012-06-15 08:23:08 +02:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matthew Noorenberghe
671fe56e5f Bug 723802 - Add telemetry for startup crash detection (1/2) - timeline portion. r=taras 2012-02-09 15:49:33 -08:00
Mike Hommey
8ff71c60c9 Bug 686805 part 7 - Display linker stats on each Startup Timeline event. r=tglek,r=khuey 2012-02-22 08:12:15 +01:00
Mike Hommey
4641242512 Bug 718737 - Add a startup timeline event on the first nsDocShell::LoadURI for non about:blank content. r=bz,r=tglek 2012-01-19 08:40:18 +01:00
Rafael Ávila de Espíndola
9371185d11 Bug 708034 - Don't #include __FILE__. r=glandium. 2011-12-08 15:43:05 -05:00
Mike Hommey
df72c915e2 Bug 702764 part 3 - Add linker initialization and library loading timestamps for nsAppStartup::GetStartupInfo. r=tglek 2011-11-18 08:54:37 +01:00
Mike Hommey
efd6f09c3e Bug 702764 part 2 - Make nsAppStartup::GetStartupInfo more flexible. r=tglek 2011-11-18 08:54:27 +01:00