(function() {
  /**
   * Browsertime (http://www.browsertime.com)
   * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog
   * and other contributors
   * Released under the Apache 2.0 License
   */

// someway the get entries by type isn't working in IE using Selenium,
// will spend time fixing this later, now just return empty
  if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
    return {
      measures: [],
      marks: []
    };
  } else {
    return {
      measures: (window.performance && window.performance.getEntriesByType) ? window.performance.getEntriesByType(
        'measure') : [],
      marks: (window.performance && window.performance.getEntriesByType) ? window.performance.getEntriesByType('mark') : []
    };
  }
})();

(function() {
  /**
   * Browsertime (http://www.browsertime.com)
   * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog
   * and other contributors
   * Released under the Apache 2.0 License
   */

// someway the get entries by type isn't working in IE using Selenium,
// will spend time fixing this later, now just return empty
  if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
    return {
      measures: [],
      marks: []
    };
  } else {
    // FIXME marks exported from Firefox include "toJSON": "function toJSON() {\n    [native code]\n}"
    return {
      measures: (window.performance && window.performance.getEntriesByType) ? window.performance.getEntriesByType(
        'measure') : [],
      marks: (window.performance && window.performance.getEntriesByType) ? window.performance.getEntriesByType('mark') : []
    };
  }
})();

Add fixme comment for user timings on Firefox.
Add fixme comment for user timings on Firefox.
