Bug 1500635. Expose ProfileJSONWriter. r=mstange
authorJeff Muizelaar <jrmuizel@gmail.com>
Tue, 23 Oct 2018 12:42:32 +0000
changeset 490896 3d81c51cff40762dc072c89c81458bd3b548e913
parent 490895 ac5060eb361cd23100e28128f810020f2e422878
child 490897 9cc63b9b3506e7f7d37ecf9ee30ffa2511145a50
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersmstange
bugs1500635
milestone65.0a1
Bug 1500635. Expose ProfileJSONWriter. r=mstange This lets ProfilerMarkerPayload implementations live outside of the profiler. Differential Revision: https://phabricator.services.mozilla.com/D9325
tools/profiler/core/ProfileJSONWriter.h
tools/profiler/moz.build
tools/profiler/public/ProfileJSONWriter.h
--- a/tools/profiler/moz.build
+++ b/tools/profiler/moz.build
@@ -8,16 +8,17 @@ if CONFIG['MOZ_GECKO_PROFILER']:
     DEFINES['MOZ_REPLACE_MALLOC_PREFIX'] = 'profiler'
     XPIDL_MODULE = 'profiler'
     XPIDL_SOURCES += [
         'gecko/nsIProfiler.idl',
     ]
     EXPORTS += [
         'public/ChildProfilerController.h',
         'public/GeckoProfilerReporter.h',
+        'public/ProfileJSONWriter.h',
         'public/ProfilerChild.h',
         'public/ProfilerMarkerPayload.h',
         'public/ProfilerParent.h',
         'public/shared-libraries.h',
     ]
     UNIFIED_SOURCES += [
         'core/platform.cpp',
         'core/ProfileBuffer.cpp',
rename from tools/profiler/core/ProfileJSONWriter.h
rename to tools/profiler/public/ProfileJSONWriter.h