Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analysis_server] Record execution/timing of "pub upgrade" for plugin…
…s in instrumentation log This will help identify issues like #55621 in future from the logs without needing to repro. Before, there was just a gap in the logs that wasn't obvious. A sample log looks like: ``` 1715080652096:Req:{"jsonrpc"::"2.0","id"::2,"result"::null,"clientRequestTime"::1715080652091} 1715080652253:Info:Running "pub upgrade" in "C::\Users\danny\AppData\Local\.dartServer\.plugin_manager\723cb7b2bec3011e09cd16421250ff7a\analyzer_plugin" 1715080653311:Info:Running "pub upgrade" took 0::00::01.057950 1715080653393:Res:{"id"::3,"jsonrpc"::"2.0","method"::"window/workDoneProgress/create","params"::{"token"::"ANALYZING"}} ``` (This was the only instance of `Process.runSync` in the server) Change-Id: I2ccc5a7c538ae7a236a76df020c59014982a2e19 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365602 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]>
- Loading branch information