lib/third_party/tracing/extras/rail/rail_ir_finder.js
function() {
      var startupEvents = this.getStartupEvents();
      var commitLoadEvents =
          this.modelHelper.browserHelper.getCommitProvisionalLoadEventsInRange(
              this.model.bounds);
      var frameEvents = this.getAllFrameEvents();
      var startLoadEvents = this.getStartLoadEvents();
      var failLoadEvents = this.getFailLoadEvents();
      var lirs = [];

      // Attach frame events to every startup events.
      var startupLIRs = this.findLoadInteractionRecords_(startupEvents,
          frameEvents);
      this.setIRNames_(LOAD_STARTUP_IR_NAME, startupLIRs);
      lirs.push.apply(lirs, startupLIRs);

      // Attach frame events to every commit load events.
      var successfulLIRs = this.findLoadInteractionRecords_(commitLoadEvents,
          frameEvents);
      this.setIRNames_(LOAD_SUCCEEDED_IR_NAME, successfulLIRs);
      successfulLIRs.forEach(function(lir) {
        // If a successful Load IR has a loadFinishedEvent, then it is a main
        // frame.
        // Drop sub-frame Loads for now.
        if (lir.loadFinishedEvent)
          lirs.push(lir);
      });

      // Attach fail load events to every start load events.
      var failedLIRs = this.findLoadInteractionRecords_(startLoadEvents,
          failLoadEvents);
      this.setIRNames_(LOAD_FAILED_IR_NAME, failedLIRs);
      failedLIRs.forEach(function(lir) {
        // If a failed Load IR has a parentRoutingId, then it is a sub-frame.
        // Drop sub-frame Loads for now.
        if (lir.parentRoutingId === undefined)
          lirs.push(lir);
      });

      return lirs;
    }
function() {
      var startupEvents = this.getStartupEvents();
      var commitLoadEvents =
          this.modelHelper.browserHelper.getCommitProvisionalLoadEventsInRange(
              this.model.bounds);
      var frameEvents = this.getAllFrameEvents();
      var startLoadEvents = this.getStartLoadEvents();
      var failLoadEvents = this.getFailLoadEvents();
      var lirs = [];

      // Attach frame events to every startup events.
      var startupLIRs = this.findLoadInteractionRecords_(startupEvents,
          frameEvents);
      this.setIRNames_(LOAD_STARTUP_IR_NAME, startupLIRs);
      lirs.push.apply(lirs, startupLIRs);

      // Attach frame events to every commit load events.
      var successfulLIRs = this.findLoadInteractionRecords_(commitLoadEvents,
          frameEvents);
      this.setIRNames_(LOAD_SUCCEEDED_IR_NAME, successfulLIRs);
      successfulLIRs.forEach(function(lir) {
        // If a successful Load IR has a loadFinishedEvent, then it is a main
        // frame.
        // Drop sub-frame Loads for now.
        if (lir.loadFinishedEvent)
          lirs.push(lir);
      });

      // Attach fail load events to every start load events.
      var failedLIRs = this.findLoadInteractionRecords_(startLoadEvents,
          failLoadEvents);
      this.setIRNames_(LOAD_FAILED_IR_NAME, failedLIRs);
      failedLIRs.forEach(function(lir) {
        // If a failed Load IR has a parentRoutingId, then it is a sub-frame.
        // Drop sub-frame Loads for now.
        if (lir.parentRoutingId === undefined)
          lirs.push(lir);
      });

      return lirs;
    }
function ( ) { var startupEvents = this . getStartupEvents ( ) ; var commitLoadEvents = this . modelHelper . browserHelper . getCommitProvisionalLoadEventsInRange ( this . model . bounds ) ; var frameEvents = this . getAllFrameEvents ( ) ; var startLoadEvents = this . getStartLoadEvents ( ) ; var failLoadEvents = this . getFailLoadEvents ( ) ; var lirs = [ ] ; // Attach frame events to every startup events. var startupLIRs = this . findLoadInteractionRecords_ ( startupEvents , frameEvents ) ; this . setIRNames_ ( LOAD_STARTUP_IR_NAME , startupLIRs ) ; lirs . push . apply ( lirs , startupLIRs ) ; // Attach frame events to every commit load events. var successfulLIRs = this . findLoadInteractionRecords_ ( commitLoadEvents , frameEvents ) ; this . setIRNames_ ( LOAD_SUCCEEDED_IR_NAME , successfulLIRs ) ; successfulLIRs . forEach ( function ( lir ) { // If a successful Load IR has a loadFinishedEvent, then it is a main // frame. // Drop sub-frame Loads for now. if ( lir . loadFinishedEvent ) lirs . push ( lir ) ; } ) ; // Attach fail load events to every start load events. var failedLIRs = this . findLoadInteractionRecords_ ( startLoadEvents , failLoadEvents ) ; this . setIRNames_ ( LOAD_FAILED_IR_NAME , failedLIRs ) ; failedLIRs . forEach ( function ( lir ) { // If a failed Load IR has a parentRoutingId, then it is a sub-frame. // Drop sub-frame Loads for now. if ( lir . parentRoutingId === undefined ) lirs . push ( lir ) ; } ) ; return lirs ; }
Match up RenderFrameImpl events with frame render events.
Match up RenderFrameImpl events with frame render events .