function $AdfSeleniumPerformanceLogWriter$$($domWindow$$138$$, $backupLogWriter$$17$$) {
  this.$_isPerfLogger$ = null;
  this.$_logString$ = "";
  this.Init($domWindow$$138$$, $backupLogWriter$$17$$);
}
$goog$exportSymbol$$("AdfSeleniumPerformanceLogWriter", $AdfSeleniumPerformanceLogWriter$$);
$AdfObject$$.$createSubclass$($AdfSeleniumPerformanceLogWriter$$, $AdfLogWriter$$);
$AdfSeleniumPerformanceLogWriter$$.prototype.Init = function $$AdfSeleniumPerformanceLogWriter$$$$Init$($domWindow$$139$$, $backupLogWriter$$18$$) {
  $AdfAssert$$.$assertPrototype$($backupLogWriter$$18$$, $AdfLogWriter$$);
  $AdfSeleniumPerformanceLogWriter$$.$superclass$.Init.call(this, $domWindow$$139$$, $backupLogWriter$$18$$);
  this.$_backupLogWriter$ = $backupLogWriter$$18$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSeleniumPerformanceLogWriter.prototype.Init", {Init:$AdfSeleniumPerformanceLogWriter$$.prototype.Init});
$AdfSeleniumPerformanceLogWriter$$.prototype.$PublishImpl$ = function $$AdfSeleniumPerformanceLogWriter$$$$$PublishImpl$$($logRecord$$21$$) {
  if (!$JSCompiler_StaticMethods__isPerformanceLogger$$(this)) {
    this.$_backupLogWriter$.$PublishImpl$.apply(this.$_backupLogWriter$, arguments);
  } else {
    if (null != $logRecord$$21$$.message) {
      var $parts$$6_time$$8$$ = $logRecord$$21$$.message.split(";", 3);
      if (3 == $parts$$6_time$$8$$.length) {
        var $msg$$15$$ = $parts$$6_time$$8$$[0], $parts$$6_time$$8$$ = parseInt($parts$$6_time$$8$$[2]);
        isNaN($parts$$6_time$$8$$) || (0 < this.$_logString$.length && (this.$_logString$ += String.fromCharCode(30)), this.$_logString$ += $msg$$15$$ + String.fromCharCode(29) + $parts$$6_time$$8$$);
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSeleniumPerformanceLogWriter.prototype.PublishImpl", {$PublishImpl$:$AdfSeleniumPerformanceLogWriter$$.prototype.$PublishImpl$});
$AdfSeleniumPerformanceLogWriter$$.prototype.$getLogValueAndClear$ = function $$AdfSeleniumPerformanceLogWriter$$$$$getLogValueAndClear$$() {
  var $data$$70$$ = this.$_logString$;
  this.$_logString$ = "";
  return $data$$70$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSeleniumPerformanceLogWriter.prototype.getLogValueAndClear", {$getLogValueAndClear$:$AdfSeleniumPerformanceLogWriter$$.prototype.$getLogValueAndClear$});
$AdfSeleniumPerformanceLogWriter$$.prototype.close = function $$AdfSeleniumPerformanceLogWriter$$$$close$() {
  $AdfSeleniumPerformanceLogWriter$$.$superclass$.close.apply(this, arguments);
  delete this.$_logString$;
  this.$_backupLogWriter$.close();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSeleniumPerformanceLogWriter.prototype.close", {close:$AdfSeleniumPerformanceLogWriter$$.prototype.close});
$AdfSeleniumPerformanceLogWriter$$.prototype.flush = function $$AdfSeleniumPerformanceLogWriter$$$$flush$() {
  this.$CheckIfClosed$();
  $JSCompiler_StaticMethods__isPerformanceLogger$$(this) || this.$_backupLogWriter$.flush.apply(this.$_backupLogWriter$, arguments);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfSeleniumPerformanceLogWriter.prototype.flush", {flush:$AdfSeleniumPerformanceLogWriter$$.prototype.flush});
function $JSCompiler_StaticMethods__isPerformanceLogger$$($JSCompiler_StaticMethods__isPerformanceLogger$self$$) {
  if (null == $JSCompiler_StaticMethods__isPerformanceLogger$self$$.$_isPerfLogger$ && ($JSCompiler_StaticMethods__isPerformanceLogger$self$$.$_isPerfLogger$ = !1, "undefined" != typeof $AdfLogger$$.PROFILER_LOGGER)) {
    var $logger$$33$$ = $AdfLogger$$.$PROFILER_LOGGER$;
    $logger$$33$$ && $logger$$33$$.$getLogWriter$() == $JSCompiler_StaticMethods__isPerformanceLogger$self$$ && ($JSCompiler_StaticMethods__isPerformanceLogger$self$$.$_isPerfLogger$ = !0);
  }
  return $JSCompiler_StaticMethods__isPerformanceLogger$self$$.$_isPerfLogger$;
}
;