a2cb747999
By changing a benchmark to say ``` LaunchFrom get launchFrom => LaunchFrom.AotWithPerf; ``` and compiling the server with aot: ``` out/ReleaseX64/dart-sdk/bin/dart compile aot-snapshot pkg/analysis_server/bin/server.dart ``` running the benchmark will run from the aot snapshot and automatically launch `perf`, allowing one to do `perf report` after to get a profile of the entire benchmark. Change-Id: Idd5c576129acaf4756befb22f9832b24f93b1583 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426480 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Jens Johansen <jensj@google.com>