Skip to main content
Version: Next

ts_shape.eventlog.profiler_rules

Event-log rules of the mapping-free unit profilers, in one place.

Every profiler (:mod:ts_shape.events.profiling._base) has the same kinds of tables: point records per unit, registers, evidence tables and an evaluation_window. This module declares them compactly; the taxonomy (:data:ts_shape.eventlog.taxonomy.REGISTRY) and the archetype map (:data:ts_shape.eventlog.archetypes.ARCHETYPE_BY_METHOD) are filled from it. evaluation_window gets :data:EVALUATION_RULE unless a class names its own.

Pure data (no imports from the taxonomy), so both modules can read it.

Per class: pack, slug (the template is <pack>.<slug>.<name>) and tables: method -> name, shape (point / interval / summary / static), archetype and the other :class:~ts_shape.eventlog.taxonomy. LabelRule fields (objs for produces_objects).

Functions
NameDescription
profiler_rule_specs(class, method) -> spec including every evaluation_window.

profiler_rule_specs​

functionsource
profiler_rule_specs() -> dict[tuple[str, str], dict[str, Any]]

(class, method) -> spec including every evaluation_window.