mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
This commit is contained in:
parent
ac3468d5cc
commit
8c8145e620
186 changed files with 48 additions and 2957 deletions
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include "PluginHangUIParent.h"
|
||||
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/ipc/ProtocolUtils.h"
|
||||
#include "mozilla/plugins/PluginModuleParent.h"
|
||||
|
||||
|
|
@ -48,14 +47,6 @@ public:
|
|||
NS_IMETHOD
|
||||
Run() override
|
||||
{
|
||||
mozilla::Telemetry::Accumulate(
|
||||
mozilla::Telemetry::PLUGIN_HANG_UI_USER_RESPONSE, mResponseCode);
|
||||
mozilla::Telemetry::Accumulate(
|
||||
mozilla::Telemetry::PLUGIN_HANG_UI_DONT_ASK, mDontAskCode);
|
||||
mozilla::Telemetry::Accumulate(
|
||||
mozilla::Telemetry::PLUGIN_HANG_UI_RESPONSE_TIME, mResponseTimeMs);
|
||||
mozilla::Telemetry::Accumulate(
|
||||
mozilla::Telemetry::PLUGIN_HANG_TIME, mTimeoutMs + mResponseTimeMs);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "PluginInstanceParent.h"
|
||||
#include "BrowserStreamParent.h"
|
||||
#include "PluginAsyncSurrogate.h"
|
||||
|
|
@ -2504,6 +2503,5 @@ PluginInstanceParent::RecordDrawingModel()
|
|||
}
|
||||
MOZ_ASSERT(mode >= 0);
|
||||
|
||||
Telemetry::Accumulate(Telemetry::PLUGIN_DRAWING_MODEL, mode);
|
||||
mLastRecordedDrawingModel = mode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/ProcessHangMonitor.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCRT.h"
|
||||
|
|
@ -1172,11 +1171,6 @@ PluginModuleParent::GetRunID(uint32_t* aRunID)
|
|||
void
|
||||
PluginModuleChromeParent::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
if (why == AbnormalShutdown) {
|
||||
Telemetry::Accumulate(Telemetry::SUBPROCESS_ABNORMAL_ABORT,
|
||||
NS_LITERAL_CSTRING("plugin"), 1);
|
||||
}
|
||||
|
||||
// We can't broadcast settings changes anymore.
|
||||
UnregisterSettingsCallbacks();
|
||||
|
||||
|
|
@ -2203,12 +2197,8 @@ public:
|
|||
void
|
||||
PluginModuleParent::AccumulateModuleInitBlockedTime()
|
||||
{
|
||||
if (mPluginName.IsEmpty()) {
|
||||
GetPluginDetails();
|
||||
}
|
||||
Telemetry::Accumulate(Telemetry::BLOCKED_ON_PLUGIN_MODULE_INIT_MS,
|
||||
GetHistogramKey(),
|
||||
static_cast<uint32_t>(mTimeBlocked.ToMilliseconds()));
|
||||
// XXX: mTimeBlocked can probably go if not used for anything besides
|
||||
// telemetry.
|
||||
mTimeBlocked = TimeDuration();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue