Attribute Macros§
- track_
usage - Call a lightweight usage recorder on entry to a function or impl method.
Place this before
pymethods/pyfunction. Class attributes run during module registration, so they deliberately do not count as user operations. Withon_success, record after returning normally (and only forOkonResult/PyResultmethods). Getters and Python inspection hooks are skipped.