Files
Jens Johansen 12c1186899 [CFE] Instrumenter: Add tests and --countCalls
Adds `--countCalls` - used for instance as

```
out/ReleaseX64/dart pkg/front_end/tool/flame/instrumenter.dart pkg/analyzer/tool/stable_analysis.dart --countCalls --onlySome
```

Where "normal" `--count` calls the number of times we enter the
function, `--countCalls` will count the number of times certain methods
(hard-coded ones with `--onlySome` or user-specified via `--onlySome=`)
are actually executed. For instance if it's inside a loop it might be
much higher than the number of times we enter the function, and if it's
behind lots of `if`s it might be much lower.

Change-Id: I35b0620aa395cc920d3ea6a33eeef2d24618b74c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481421
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2026-02-19 00:14:14 -08:00
..