tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

timing-markers.js (532B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 "use strict";
      5 
      6 const {
      7  ADD_TIMING_MARKER,
      8  CLEAR_TIMING_MARKERS,
      9 } = require("resource://devtools/client/netmonitor/src/constants.js");
     10 
     11 exports.addTimingMarker = marker => {
     12  return {
     13    type: ADD_TIMING_MARKER,
     14    marker,
     15  };
     16 };
     17 
     18 exports.clearTimingMarkers = () => {
     19  return {
     20    type: CLEAR_TIMING_MARKERS,
     21  };
     22 };