gecko-dev/tools
Nicholas Nethercote 82d4c11201 Bug 1332577 (part 9) - Remove all mozilla_sampler_*() functions. r=mstange.
There are lots of profiler_*() functions that simply call onto equivalent or
nearly-equivalent mozilla_sampler_*() functions. This patch removes the
unnecessary indirection by removing the mozilla_sampler_*() functions.

The most important changes:

- In platform.cpp, all the mozilla_sampler_*() definitions are renamed as
  profiler_*().

- In GeckoProfiler.h, the new PROFILER_FUNC{,_VOID} macros provide a neat way
  to declare the functions that must be present whether the profiler is enabled
  or not.

- In GeckoProfiler.h, all the mozilla_sampler_*() declarations are removed, as
  are all the profiler_*() definitions that corresponded to a
  mozilla_sampler_*() function.

Other things of note:

- profiler_log(const char* str) is now defined in platform.cpp, instead of in
  GeckoProfiler.h, for consistency with all the other profiler_*() functions.
  Likewise with profiler_js_operation_callback() and
  profiler_in_privacy_mode().

- ProfilerBacktraceDestructor::operator() is treated slightly different to all
  the profiler_*() functions.

- Both variants of profiler_tracing() got some early-return conditions moved
  into them from GeckoProfiler.h.

- There were some cases where the profiler_*() and mozilla_sampler_*() name
  didn't quite match. Specifically:

  * mozilla_sampler_get_profile_data() and profiler_get_profiler_jsobject():
    name mismatch. Kept the latter.

  * mozilla_sampler_get_profile_data_async() and
    profiler_get_profile_jsobject_async(): name mismatch. Kept the latter.

  * mozilla_sampler_register_thread() and profiler_register_thread(): return
    type mismatch. Changed to void.

  * mozilla_sampler_frame_number() and profiler_set_frame_number(): name
    mismatch. Kept the latter.

  * mozilla_sampler_save_profile_to_file() and
    profile_sampler_save_profile_to_file(): the former was 'extern "C"' so it
    could be called from a debugger easily. The latter now is 'extern "C"'.

- profiler_get_buffer_info() didn't fit the patterns handled by
  PROFILER_FUNC{,VOID}, so the patch makes it call onto the new function
  profiler_get_buffer_info_helper(), which does fit the pattern.

--HG--
extra : rebase_source : fa1817854ade81e8a3027907d1476ff2563f1cc2
2017-01-20 15:05:16 +11:00
..
bloatview
coverity Bug 1300080 - add to mozilla repository the modeling file for coverity. r=Ehsan 2016-09-03 08:55:58 +03:00
docs Fixup readthedocs generation from bug 1294565. r=me 2016-10-12 14:31:14 -04:00
fuzzing Backed out 4 changesets (bug 1306329) for 3000+ hazards a=backout 2017-01-17 17:55:24 -08:00
jprof Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske 2016-08-15 17:28:05 -07:00
leak-gauge Bug 1275744 - Reference MOZ_LOG in leak_gauge. r=dbaron 2016-05-25 15:21:04 -07:00
lint Bug 1329543 - Remove 'adobe' from GMP download code. r=spohl 2017-01-14 16:37:59 +08:00
memory
memory-profiler Bug 1302448 part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap 2016-09-14 15:48:17 +02:00
mercurial Bug 1307622: Fix handling of ignored file warnings. r=Mossop 2016-10-04 22:44:50 +01:00
power Bug 1301627 - Change the name of commented variables when calling perf_event_open. r=erahm 2016-10-23 10:10:00 -07:00
profiler Bug 1332577 (part 9) - Remove all mozilla_sampler_*() functions. r=mstange. 2017-01-20 15:05:16 +11:00
quitter Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
rb Bug 1331310 - Remove unbufferedLineConverter in fix_linux_stacks.py. r=glandium. 2017-01-18 13:57:39 +11:00
rewriting Bug 1315438 - Fix the path to kiss_fft in the third party library list. r=mystor 2016-11-05 20:11:00 -04:00
update-packaging Bug 1295542 - Update packaging accordingly. r=bhearsum 2016-09-20 13:44:25 +09:00
mach_commands.py Bug 1329191 - Download clang-format 4.0 from tooltool and add a checksum check. Flake8 on the rest of the file r=gps 2017-01-06 15:52:07 +01:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00