enabled property

bool get enabled

Master switch. Defaults to the PDF_PERF_LOG dart-define so it is inert unless explicitly turned on for a diagnostic run.

Enabling also switches on the COS-layer PdfPerf facade (pdf_cos) and points its event sink here, so one flag lights up the whole stack. The dart-define path bridges lazily on the first enabled read - every instrumented call site checks it, so that is effectively process start.

Implementation

static bool get enabled {
  final on = _enabled;
  if (on && !_bridged) _bridge(true);
  return on;
}
set enabled (bool value)

Implementation

static set enabled(bool value) {
  _enabled = value;
  if (value) _stampPending = true;
  _bridge(value);
}