QA/Telemetry/BrowserConsoleCommands: Difference between revisions

Jump to navigation Jump to search
Line 12: Line 12:
** automatically update/refresh the current experiment manifest
** automatically update/refresh the current experiment manifest


Cu.import("resource:///modules/experiments/Experiments.jsm");<br />
Cu.import("resource:///modules/experiments/Experiments.jsm");
Experiments.instance().updateManifest();
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


Cu.import("resource://gre/modules/TelemetryLog.jsm"); <br />
Cu.import("resource://gre/modules/TelemetryLog.jsm");
TelemetryLog.entries().toSource();
TelemetryLog.entries().toSource();


* '''Extracting Telemetry Payload'''
* '''Extracting Telemetry Payload'''
Line 32: Line 32:
   copyStringToClipboard(JSON.stringify(TelemetryPing.getPayload(), null, " "));
   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