• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
        • Defun
        • Verify-guards
        • Table
        • Mutual-recursion
        • Memoize
        • Make-event
        • Include-book
        • Encapsulate
        • Defun-sk
        • Defttag
        • Defstobj
        • Defpkg
        • Defattach
        • Defabsstobj
        • Defchoose
        • Progn
        • Verify-termination
        • Redundant-events
        • Defmacro
        • Defconst
        • Skip-proofs
        • In-theory
        • Embedded-event-form
        • Value-triple
        • Comp
        • Local
        • Defthm
        • Progn!
        • Defevaluator
        • Theory-invariant
        • Assert-event
        • Defun-inline
        • Project-dir-alist
        • Partial-encapsulate
        • Define-trusted-clause-processor
        • Defproxy
        • Defexec
        • Defun-nx
        • Defthmg
        • Defpun
        • Defabbrev
        • Set-table-guard
        • Name
        • Defrec
        • Add-custom-keyword-hint
        • Regenerate-tau-database
        • Defcong
        • Deftheory
        • Defaxiom
        • Deftheory-static
        • Defund
        • Evisc-table
        • Verify-guards+
        • Logical-name
        • Profile
          • Profile-all
            • Profile-ACL2
          • Defequiv
          • Defmacro-untouchable
          • Add-global-stobj
          • Defthmr
          • Defstub
          • Defrefinement
          • Deflabel
          • In-arithmetic-theory
          • Unmemoize
          • Defabsstobj-missing-events
          • Defthmd
          • Fake-event
          • Set-body
          • Defun-notinline
          • Functions-after
          • Macros-after
          • Dump-events
          • Defund-nx
          • Defun$
          • Remove-global-stobj
          • Remove-custom-keyword-hint
          • Dft
          • Defthy
          • Defund-notinline
          • Defnd
          • Defn
          • Defund-inline
          • Defmacro-last
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Debugging
    • Profile
    • Memoize
    • Time$

    Profile-all

    profile essentially all functions

    Evaluating (profile-all) profiles each function symbol in a package known 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-all is invoked, it calls clear-memoize-statistics to remove all profiling info displayed by memoize-summary.

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

    General form:

    (profile-all :lots-of-info lots-of-info  ; default t
                 :forget forget              ; default nil
                 :pkg    pkg                 ; default nil
                 )

    where all keywords are evaluated and optional, and:

    • 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).
    • forget (default: nil) is passed as the :forget argument for each generated call of profile; and
    • pkg, when supplied, is a package name or list of package names to use in place of the default, which is the list of names of all packages known to ACL2 except for packages "ACL2-INPUT-CHANNEL", "ACL2-OUTPUT-CHANNEL", "COMMON-LISP", and "KEYWORD".

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