function send(reason, server) {
    // populate histograms one last time
    this.gatherMemory();

    let data = this.getSessionPayloadAndSlug(reason);

    // Don't record a successful ping for previous session data.
    this.doPing(server, data.slug, data.payload, !data.previous);
    this._prevSession = null;

    // We were sending off data from before; now send the actual data
    // we've collected this session.
    if (data.previous) {
      data = this.getSessionPayloadAndSlug(reason);
      this.doPing(server, data.slug, data.payload, true);
    }
  }
/**
   * Send data to the server. Record success/send-time in histograms
   */
Send data to the server. Record success/send-time in histograms
Send data to the server . Record success / send - time in histograms
function send(reason, server) {
    this.gatherMemory();
    let data = this.getSessionPayloadAndSlug(reason);
    this.doPing(server, data.slug, data.payload, !data.previous);
    this._prevSession = null;
    if (data.previous) {
      data = this.getSessionPayloadAndSlug(reason);
      this.doPing(server, data.slug, data.payload, true);
    }
  }
function send ( reason , server ) { this . gatherMemory ( ) ; let data = this . getSessionPayloadAndSlug ( reason ) ; this . doPing ( server , data . slug , data . payload , ! data . previous ) ; this . _prevSession = null ; if ( data . previous ) { data = this . getSessionPayloadAndSlug ( reason ) ; this . doPing ( server , data . slug , data . payload , true ) ; } }
Send data to the server.
Send data to the server .
// populate histograms one last time // Don't record a successful ping for previous session data. // We were sending off data from before; now send the actual data // we've collected this session.