Bug 1463118 - Implement telemetry for pausing r=jlast
authorDavid Walsh <dwalsh@mozilla.com>
Wed, 28 Aug 2019 23:12:55 +0000
changeset 554287 ce0bf8048da8f8bbb1b72fad304e5180aff30d58
parent 554286 899661c21909f29dd77fd1b8cfb7b9a39b2093f9
child 554288 9b69984d9c2515398aec95101dae8d4984f02a66
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1463118
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1463118 - Implement telemetry for pausing r=jlast Differential Revision: https://phabricator.services.mozilla.com/D43797
devtools/client/debugger/src/client/firefox/events.js
--- a/devtools/client/debugger/src/client/firefox/events.js
+++ b/devtools/client/debugger/src/client/firefox/events.js
@@ -9,16 +9,17 @@ import type {
   PausedPacket,
   ThreadFront,
   Actions,
   Target,
 } from "./types";
 
 import { createPause, prepareSourcePayload } from "./create";
 import sourceQueue from "../../utils/source-queue";
+import { recordEvent } from "../../utils/telemetry";
 
 const CALL_STACK_PAGE_SIZE = 1000;
 
 type Dependencies = {
   threadFront: ThreadFront,
   tabTarget: Target,
   actions: Actions,
 };
@@ -67,16 +68,18 @@ async function paused(threadFront: Threa
     return;
   }
 
   if (why.type != "alreadyPaused") {
     const pause = createPause(threadFront.actor, packet, response);
     await sourceQueue.flush();
     actions.paused(pause);
   }
+
+  recordEvent("pause", { reason: why.type });
 }
 
 function resumed(threadFront: ThreadFront) {
   // NOTE: the client suppresses resumed events while interrupted
   // to prevent unintentional behavior.
   // see [client docs](../README.md#interrupted) for more information.
   if (isInterrupted) {
     isInterrupted = false;