gecko-dev/tools/profiler
Nicholas Nethercote 8179018d28 Bug 1373154 (part 3) - Overhaul TickSample and things around it. r=mstange.
Bug 1357829 added a third kind of sample, in addition to the existing
"periodic" and "synchronous" samples. This patch cleans things up around that
change. In particular, it cleans up TickSample, which is a mess of semi-related
things.

The patch does the following.

- It removes everything from TickSample except the register values and renames
  TickSample as Registers. Almost all the removed stuff is available in
  ThreadInfo anyway, and the patch adds a ThreadInfo argument to various
  functions. (Doing it this way wasn't possible until recently because a
  ThreadInfo wasn't available in profiler_get_backtrace() until recently.)

  One non-obvious consequence: in synchronous samples we used to use a value of
  0 for the stackTop. Because synchronous samples now use ThreadInfo directly,
  they are able to use the proper stack top value from ThreadInfo::mStackTop.
  This will presumably only improve the quality of the stack traces.

- It splits Tick() in two and renames the halves DoPeriodicSample() and
  DoSyncSample().

- It reorders arguments in some functions so that ProfileBuffer (the output) is
  always last, and inputs are passed in roughly the order they are obtained.

- It adds a comment at the top of platform.cpp explaining the three kinds of
  sample.

- It renames a couple of other things.

--HG--
extra : rebase_source : 61f4bf75ff5a2c331e8e39dcbb2bf3563606ebb0
2017-06-16 08:29:19 +10:00
..
core Bug 1373154 (part 3) - Overhaul TickSample and things around it. r=mstange. 2017-06-16 08:29:19 +10:00
gecko Bug 1372864 - Change CheckResponsivenessTask::mMonitor to a Mutex. r=mstange. 2017-06-14 21:06:41 +10:00
lul Bug 1370786 - use UniquePtr for SecMap in LUL; r=froydnj 2017-06-07 11:40:24 -06:00
public Bug 1373154 (part 3) - Overhaul TickSample and things around it. r=mstange. 2017-06-16 08:29:19 +10:00
tasktracer Bug 1323076 - Part 1: TaskTracer with only flag checking overhead. r=cervantes 2017-03-22 21:43:00 +01:00
tests Bug 1370329 (part 1) - Clean up the profiler's RAII classes. r=mstange. 2017-06-07 12:33:19 +10:00
merge-profiles.py Bug 1168784 - Part 1: Fix the script merging profiles to handle new profiler JSON format. r=benwa 2015-06-01 18:09:29 +08:00
moz.build Bug 1369280 (part 2) - Merge ProfileGatherer into nsProfiler. r=mstange. 2017-06-02 11:59:32 +10:00
nm-symbolicate.py