c01ce3d3c0
Multiple end-to-end tests are failing in the bots because some steps during the test execution are timing out. We currently have a timeout of 5 seconds for these steps, but it's unclear if the timeout is because of conditions in the bot machines (e.g. they are slow), one off exceptions, or something else. To address the flakiness, I expect we will want to increase the timeout, but before we do it may be valuable to start measuring what is the current distribution of timing in the bots to figure out the best value to use. This CL adds logging for timing data for that purpose. I've added tracking for some interesting steps in the expresson-compiler test framework, including the top two steps that usually hit a timeout in practice (find-script and pause-event-for-line). Example output on my local machine: ``` init-source: 233ms (avg), 121ms (p50), 696ms (p90), 696ms (max), 7 (total) find-script: 18ms (avg), 18ms (p50), 21ms (p90), 25ms (max), 52 (total) load-script: 22ms (avg), 22ms (p50), 27ms (p90), 30ms (max), 52 (total) set-breakpoint: 0ms (avg), 1ms (p50), 1ms (p90), 2ms (max), 52 (total) pause-event-for-line: 422ms (avg), 410ms (p50), 440ms (p90), 658ms (max), 52 (total) check-in-frame: 459ms (avg), 446ms (p50), 480ms (p90), 695ms (max), 51 (total) ``` Change-Id: I04734b9905da8e1b4c9d06451be65a2dee32ba1c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352988 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>