The standard library software_generated_periodic_events package implements a facility for calling a user-supplied handler every time a certain number of instructions have been executed. This is done entirely in software, thanks to support and cooperation from the Mythryl compiler and runtime.
The software_generated_periodic_events packages implements the Software_Generated_Periodic_Events api.
The software_generated_periodic_events package source code is in src/lib/std/src/software-generated-periodic-events/software-generated-periodic-events.pkg.
The above information is manually maintained and may contain errors.