• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Memoize
          • Memoize-partial
          • Protect-memoize-statistics
          • Profile-all
          • Profile-ACL2
            • Memoized-prover-fns
            • Unmemoize
            • Verify-guard-implication
            • Memsum
            • Set-bad-lisp-consp-memoize
            • Memoize-summary
            • Never-memoize
            • Clear-memoize-tables
            • Save-and-clear-memoization-settings
            • Clear-memoize-statistics
            • Clear-memoize-table
            • Restore-memoization-settings
            • Clear-hash-tables
          • Mbe
          • Io
          • Apply$
          • Defpkg
          • Mutual-recursion
          • Loop$
          • Programming-with-state
          • Arrays
          • Characters
          • Time$
          • Loop$-primer
          • Fast-alists
          • Defmacro
          • Defconst
          • Evaluation
          • Guard
          • Equality-variants
          • Compilation
          • Hons
          • ACL2-built-ins
          • Developers-guide
          • System-attachments
          • Advanced-features
          • Set-check-invariant-risk
          • Numbers
          • Irrelevant-formals
          • Efficiency
          • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
          • Redefining-programs
          • Lists
          • Invariant-risk
          • Errors
          • Defabbrev
          • Conses
          • Alists
          • Set-register-invariant-risk
          • Strings
          • Program-wrapper
          • Get-internal-time
          • Basics
          • Packages
          • Defmacro-untouchable
          • Primitive
          • <<
          • Revert-world
          • Set-duplicate-keys-action
          • Unmemoize
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Defopen
          • Sleep
        • Start-here
        • Real
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Debugging
    • Profile
    • Memoize
    • Time$

    Profile-ACL2

    profile essentially all ACL2 functions

    Evaluating (profile-acl2) profiles each function symbol admitted to ACL2 unless it is

    • memoized,
    • traced,
    • in the package "COMMON-LISP", or
    • otherwise illegal to memoize or profile (as per raw Lisp variables *never-memoize-ht* and *profile-reject-ht*).

    When profile-acl2 is invoked, it calls clear-memoize-statistics to remove all profiling info displayed by memoize-summary.

    Also see profile-all, which is similar but is not restricted to functions defined in the ACL2 loop.

    General form:

    (profile-acl2 :start start                ; default 0
                  :lots-of-info lots-of-info  ; default t
                  :forget forget              ; default nil
                  )

    where all keywords are evaluated and optional, and:

    • start (default: 0) is either an event name or a natural number, to restrict to functions admitted after the given event or after the given number of events, respectively;
    • lots-of-info (default: t) determines whether the usual profiling information is recorded (when lots-of-info is true) or not (when lots-of-info is false); and
    • forget (default: nil) is passed as the :forget argument for each generated call of profile.

    Note that profile-acl2 has an under-the-hood definition in raw Lisp, and thus a trust tag (see defttag) is temporarily introduced while loading its definition.