-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flambda-backend: Statically enabled probes (#1388)
* Support [~enabled_at_init] argument of %probe The following new constructs are accepted: [%probe "name" ~enabled_at_init:true handler] [%probe "name" ~enabled_at_init:false handler] The default is [%probe "name" handler] and implies [~enabled_at_init:false] * Propagate [enabled_at_init] to Emit * emit call instead of jmp opcode for enabled_at_init probes * Add test * Initialize semaphore according to enabled_at_init Check that all probes with the same name in the current compilation unit have consistent [enabled_at_init]. * Improve error message * Add a test for inconsistent enabled_at_init for %probe * Refactor parsing * Add a module for Probe in Flambda2 * Rename variables [probe_name] to [probe] in middle_end/flambda2 code * Improve code style and make [desc] private
- Loading branch information
Showing
7 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters