Commit Graph
30 Commits
Author SHA1 Message Date
Thinker K.F. Li 6007ee960a Bug 1323076 - Part 1: TaskTracer with only flag checking overhead. r=cervantes 2017-03-22 21:43:00 +01:00
Thinker K.F. Li 41068c94cb Bug 1346151 - Avoid compile time warning for format strings. r=cervantes 2017-03-10 02:03:00 -05:00
Thinker K.F. Li 99b7921cf9 Bug 1329929 - Fix memory leaking of TaskTracer. r=cervantes 2017-02-22 00:26:00 -05:00
Nicholas Nethercote c7ab9c86dc Bug 1339695 (part 10) - Rename SPS_* macros as GP_*. r=jseward.
This removes the final mentions of the old "SPS" name.
2017-02-18 00:57:03 +11:00
Nicholas Nethercote f2a7677b91 Bug 1339695 (part 8) - Clean up platform detection throughout the profiler. r=mstange.
Currently we use the SPS_* macros in some places, but also use other ones like
__arm__ and ANDROID and XP_{WIN,MAC,LINUX}. This patch makes the profiler
consistently use the SPS_* macros and removes the V8_HOST_ARCH_* macros.

The patch also does the following.

- Cleans up some header inclusions, e.g. including pthread.h directly in the
  files that use it, and removing some unneeded android/log.h inclusions.

- Removes an unused branch in SetSampleContext() -- we don't support ARM on
  anything other than Android, and glibc 2.3 is ancient.

- Doesn't use SPS_* in PseudoStack.h because that would require exporting
  PlatformMacros.h, which doesn't seem worthwhile.

Some things that aid the understanding of this patch.

- XP_LINUX and LINUX are both defined for Linux *and* Android.

- x86/Android is the only supported platform that doesn't define
  HAVE_NATIVE_UNWIND.

- Every platform that defines USE_LUL_STACKWALK also defines
  HAVE_NATIVE_UNWIND.
2017-02-18 00:56:21 +11:00
Nicholas Nethercote 5d84fceadb Bug 1333296 (part 3) - Remove SPS mentions in tools/profiler. r=mstange. 2017-01-24 14:18:50 +11:00
Thinker K.F. Li 0b5034bfb0 Bug 1319669 - Add class AutoScopedLabel. r=cyu 2017-01-09 18:46:00 +01:00
Shih-Chiang Chien 21bee057bc Bug 1319682 - fix compile warning/error in TaskTracer, r=sinker
MozReview-Commit-ID: 4E0ThIAZAxC
2016-11-24 17:51:23 +08:00
Thinker K.F. Li c1a027e069 Bug 1287392 - Part 8: Improve performance of logging of TaskTracer. r=cyu 2016-11-22 00:15:00 +08:00
Thinker K.F. Li 6d7bb39bf8 Bug 1287392 - Part 7: Change definition of VPtr of TaskTracer. r=cyu 2016-11-22 00:14:00 +08:00
Thinker K.F. Li cb85808c9d Bug 1287392 - Part 6: Add VirtualTask RAII class. r=cyu 2016-11-22 00:13:00 +08:00
Thinker K.F. Li 3e8d278dd8 Bug 1287392 - Part 5: Fix bugs of sync for TaskTracer. r=cyu 2016-11-22 00:11:00 +08:00
Thinker K.F. Li a739a4e623 Bug 1287392 - Part 2: Ignore obsolete TaskTracer data and fix vptr. r=cyu 2016-11-10 07:58:00 +01:00
Thinker K.F. Li f473652d38 Bug 1287392 - Part 1: Fix TaskTracer bugs caused by the changes of IPC. r=khuey, r=bgirard 2016-11-11 20:26:00 +01:00
Carsten "Tomcat" Book ae29aaccc0 Backed out changeset 606c7cb149c9 (bug 1287392) for bustage on a CLOSED TREE 2016-11-11 17:03:23 +01:00
Carsten "Tomcat" Book 63b617a8b9 Backed out changeset ac7da68e00f5 (bug 1287392) 2016-11-11 17:03:04 +01:00
Thinker K.F. Li 41e7c98c34 Bug 1287392 - Part 2: Ignore obsolete TaskTracer data and fix vptr. r=cyu 2016-11-10 07:58:00 -05:00
Thinker K.F. Li cf0fc22787 Bug 1287392 - Part 1: Fix TaskTracer bugs caused by the changes of IPC. r=khuey, r=bgirard 2016-11-10 07:57:00 -05:00
Kan-Ru Chen a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Nathan Froyd 07576378ff Bug 1270928 - part 4 - return a UniquePtr from GetLoggedData; r=BenWa
This change makes ownership clearer and enables us to get rid of the
last use of nsAutoPtr in tools/profiler/.
2016-05-09 10:04:50 -04:00
Nathan Froyd bf3d732964 Bug 1270928 - part 2 - use UniquePtr in GeckoTaskTracer.cpp:sTraceInfos; r=BenWa
Less nsAutoPtr usage and header bootlegging is a good thing.
2016-05-09 10:04:50 -04:00
Phil Ringnalda d770e09301 Merge f-t to m-c, a=merge 2016-01-23 18:11:37 -08:00
Sylvestre Ledru 1f07806bda Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Tom Tromey 2177f7ad7f Bug 757969 - use __thread in ThreadLocal; r=froydnj 2016-01-22 10:33:44 -07:00
Mike Conley 27f9186d07 Bug 1221846 - Get Task Tracer building on desktop r=cyu. 2015-12-02 20:55:38 -05:00
Birunthan Mohanathas ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Birunthan Mohanathas 1f32e08020 Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj 2015-08-11 08:29:46 -07:00
Birunthan Mohanathas 065661bf47 Bug 1185763 - Part 1: Always use mozilla::Move with nsTArray::MoveElementsFrom. r=froydnj 2015-08-11 08:29:46 -07: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
Benoit Girard e3334d416c Bug 1178892 - Split the profiler into Core & Gecko files and break apart monolithic headers. r=mstange 2015-06-30 15:03:45 -04:00