QA/Telemetry/BrowserConsoleCommands: Difference between revisions

Jump to navigation Jump to search
Line 11: Line 11:
* '''Refresh Experiment Manifest Manually'''
* '''Refresh Experiment Manifest Manually'''
** automatically update/refresh the current experiment manifest
** automatically update/refresh the current experiment manifest
*** Link to commands: https://pastebin.mozilla.org/5514133
 
Cu.import("resource:///modules/experiments/Experiments.jsm");<br />
Experiments.instance().updateManifest();
 
* '''Retrieve Telemetry Logs'''
* '''Retrieve Telemetry Logs'''
** retrieves the current telemetry log entries and displays them in the browser console
** retrieves the current telemetry log entries and displays them in the browser console
*** Link to commands: https://pastebin.mozilla.org/5514144
 
Cu.import("resource://gre/modules/TelemetryLog.jsm"); <br />
TelemetryLog.entries().toSource();
 
* '''Extracting Telemetry Payload'''
* '''Extracting Telemetry Payload'''
** extract the current telemetry payload and add it into the clipboard (paste into a text editor)
** extract the current telemetry payload and add it into the clipboard (paste into a text editor)
*** Link to code: https://pastebin.mozilla.org/5513893
 
(function() {
  function copyStringToClipboard(s) {
    var ch = Cc["@mozilla.org/widget/clipboardhelper;1"].getService(Ci.nsIClipboardHelper);
    ch.copyString(s);
  }
  Cu.import("resource://gre/modules/TelemetryPing.jsm");
  copyStringToClipboard(JSON.stringify(TelemetryPing.getPayload(), null, " "));
})();
 
 
* '''Run Maintenance Task'''
* '''Run Maintenance Task'''
** force firefox to run the maintenance task
** force firefox to run the maintenance task
*** Link to code: http://pastebin.mozilla.org/5545427
*** Link to code: http://pastebin.mozilla.org/5545427
Confirmed users
924

edits

Navigation menu