Skip to content

Conversation

@EagleoutIce
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces instrumentation capabilities for the dataflow extractor, allowing users to monitor and analyze how often each dataflow processor is called during analysis. The primary use case is enabling a heatmap display in the REPL that shows processor call frequencies.

Key changes:

  • Adds a new configuration option repl.dfProcessorHeat to enable dataflow processor instrumentation in the REPL
  • Introduces a flexible instrumentation hook solver.instrument.dataflowExtractors that allows custom modification of dataflow processors
  • Enhances the config query output to show only updated configuration keys when changes are made

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/dataflow/instrument/instrument-dataflow-count.ts New instrumentation function that wraps dataflow processors to count invocations per RType
src/dataflow/extractor.ts Integrates the instrumentation hook into the dataflow graph production pipeline; adds optional chaining to control flow graph access
src/config.ts Adds new configuration options for REPL processor heatmap and solver instrumentation hooks
src/cli/repl/core.ts Implements heatmap display logic in REPL, setting up instrumentation when dfProcessorHeat is enabled
src/queries/catalog/config-query/config-query-format.ts Enhances config query output to show only modified keys when updating configuration; adds helper functions for key collection and value retrieval
src/documentation/wiki-query.ts Updates documentation to mention the new dfProcessorHeat configuration option
src/documentation/wiki-interface.ts Adds instrument section to the example configuration structure in documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@EagleoutIce EagleoutIce merged commit 979f52d into main Jan 5, 2026
19 checks passed
@EagleoutIce EagleoutIce deleted the 2155-provide-a-way-to-instrument-all-df-handlers branch January 5, 2026 15:13
@EagleoutIce
Copy link
Member Author

This pull request is included in v2.8.4 (see Release v2.8.4 (Extractor Instrumentation, Bugfixes, and Support for more Versions)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a way to instrument all df handlers

2 participants