From 19334fd5af4b6335fd6800c8f17484f938649a64 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 24 May 2018 16:18:59 +0200 Subject: Remove IPC profile functions. Resolves #378. --- dom/ipc/ContentChild.cpp | 55 ------------------------------------------------ 1 file changed, 55 deletions(-) (limited to 'dom/ipc/ContentChild.cpp') diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index d5da9b53b..fc288e2c5 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -2403,61 +2403,6 @@ ContentChild::DeallocPOfflineCacheUpdateChild(POfflineCacheUpdateChild* actor) return true; } -bool -ContentChild::RecvStartProfiler(const ProfilerInitParams& params) -{ - nsTArray featureArray; - for (size_t i = 0; i < params.features().Length(); ++i) { - featureArray.AppendElement(params.features()[i].get()); - } - - nsTArray threadNameFilterArray; - for (size_t i = 0; i < params.threadFilters().Length(); ++i) { - threadNameFilterArray.AppendElement(params.threadFilters()[i].get()); - } - - profiler_start(params.entries(), params.interval(), - featureArray.Elements(), featureArray.Length(), - threadNameFilterArray.Elements(), - threadNameFilterArray.Length()); - - return true; -} - -bool -ContentChild::RecvStopProfiler() -{ - profiler_stop(); - return true; -} - -bool -ContentChild::RecvPauseProfiler(const bool& aPause) -{ - if (aPause) { - profiler_pause(); - } else { - profiler_resume(); - } - - return true; -} - -bool -ContentChild::RecvGatherProfile() -{ - nsCString profileCString; - UniquePtr profile = profiler_get_profile(); - if (profile) { - profileCString = nsCString(profile.get(), strlen(profile.get())); - } else { - profileCString = EmptyCString(); - } - - Unused << SendProfile(profileCString); - return true; -} - bool ContentChild::RecvLoadPluginResult(const uint32_t& aPluginId, const bool& aResult) -- cgit v1.2.3