Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch profiling #1621

Merged
merged 8 commits into from
Jun 24, 2024
Merged

Commits on Jun 20, 2024

  1. dispatch-profiler: Remove an obsolete hack

    * sources/lib/dispatch-profiler/dispatch-profiler.dylan
      (print-dispatch-statistics): Remove a whitespace-stripping
       workaround for a problem with the pentium-dw command parser.
    housel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e809ebc View commit details
    Browse the repository at this point in the history
  2. dfmc-modeling: Make profiling cache header count slots raw

    * sources/dfmc/modeling/functions.dylan
      (&class <profiling-call-site-cache-header-engine-node>): Declare the
       count slots for profiling cache-header engine nodes as
       <raw-machine-word> to reflect the way they are used in generated code.
    
    * sources/dfmc/llvm-back-end/llvm-entry-points.dylan
      (entry-point-descriptor profiling-cache-header): Remove a "todo"
       comment about making the change above.
    housel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    0e0eb65 View commit details
    Browse the repository at this point in the history
  3. dylan: Properly initialize profiling cache header engine nodes

    * sources/dylan/discrimination.dylan
      (compute-terminal-engine-node): Change the initialization order of
       profiling cache header engine nodes so that the generic function
       is available to the primitive-initialize-engine-node implementation
       (via the cache-header-engine-node-parent slot).
    housel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1b6d9f6 View commit details
    Browse the repository at this point in the history
  4. dylan: Update hit counts in discriminator nodes

    * sources/dylan/new-dispatch.dylan
      (make-linear-class-keyed-discriminator): Initialize lckd-hits
       in newly instantiated <linear-class-keyed-discriminator> nodes.
      (linear-class-key-lookup): Increment lckd-hits when the class is
       found.
      (make-linear-singleton-discriminator): Initialize lsd-hits in newly
       instantiated <linear-singleton-discriminator> nodes.
      (immediate-linear-singleton-discriminator-element): Increment
       lsd-hits when the matching instance is found.
      (value-object-linear-singleton-discriminator-element): Increment
       lsd-hits when the matching instance is found.
    housel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    27e9843 View commit details
    Browse the repository at this point in the history
  5. dispatch-profiler: Add a macro encapsulating dispatch profiling

    * sources/lib/dispatch-profiler/dispatch-profiler.dylan
      (with-dispatch-profiling-report): New macro for performing dynamic
       dispatch profiling on a block of code and printing out a summary
       report after execution completes.
    
    * sources/lib/dispatch-profiler/dispatch-profiler-library.dylan
      (module dispatch-profiler): Export the
       with-dispatch-profiling-report macro.
    housel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e822d64 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. documentation: Document the dispatch-profiler library

    * documentation/source/library-reference/dispatch-profiler/index.rst:
      New documentation source.
    
    * documentation/source/library-reference/index.rst: Add the
      dispatch-profiler to the Library Reference.
    housel committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    a45578a View commit details
    Browse the repository at this point in the history
  2. dispatch-profiler: Fix a compiler warning

    * sources/lib/dispatch-profiler/walk-dispatch.dylan
      (with-preserved-dispatch-walking-types): Comment out this currently
       unused macro definition.
    housel committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f03a7e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    114b29c View commit details
    Browse the repository at this point in the history