Starts a profiling session if OPENPROF is on.
Call from document-open start (before db.read / URI open). Safe to call
when profiling is off — it becomes a no-op.
Database that will emit openProgress for this open.
Aborts an in-flight session without printing (e.g. document replaced).
Marks the end of db.read / document open await and schedules the console
report once the view has finished converting entities.
Active 2d view whose entity convert queue is drained.
StaticisReturns whether OPENPROF is currently enabled for database.
Session open-file profiler gated by the AcDbSystemVariables.OPENPROF system variable.
When enabled, records PARSE/FONT/ENTITY (and other
openProgresssub-stages), wall-clock read vs scene convert time, and AcDbRenderingCache hit/miss counters, then prints a console summary once the view finishes converting entities (isProcessingEntities === false).Stage durations use active-stage wall time: from the first event of a sub-stage until the first event of a different sub-stage. This matches the UI overlay (e.g. font download that continues after a converter emits
FONT/ENDprematurely) better than START→END alone.