instruction counter

This section is a work in progress.

Examples:

import { Canister, ic, nat64, query } from 'azle';

export default Canister({
    // Returns the number of instructions that the canister executed since the
    // last entry point.
    instructionCounter: query([], nat64, () => {
        return ic.instructionCounter();
    })
});