Commit ca51c2d
feat: capture PET RefreshPerformance breakdown and locator timings in pet.refresh telemetry
PET already sends a 'telemetry' JSON-RPC notification with RefreshPerformance
data after each refresh call. We were discarding it. Now we listen for it and
include the per-phase and per-locator timings in our pet.refresh event.
New fields on pet.refresh:
- breakdownLocators / breakdownPath / breakdownGlobalVirtualEnvs / breakdownWorkspaces
(isMeasurement, ms) — the 4 parallel discovery phases from PET's breakdown map
- locatorsJson (string) — JSON-serialized per-locator durations (Conda, WindowsRegistry,
WindowsStore, etc.); query in Kusto with parse_json(Properties.locatorsJson)
This lets us slice slow-cohort p90s by locator/phase to answer which Windows
discovery path is responsible for the 11% slowdown (WindowsRegistry, WindowsStore,
Conda, etc.) without any changes on PET's side.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5cc5162 commit ca51c2d
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
521 | 526 | | |
522 | 527 | | |
523 | 528 | | |
| |||
529 | 534 | | |
530 | 535 | | |
531 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
532 | 547 | | |
533 | 548 | | |
534 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
185 | 202 | | |
186 | 203 | | |
187 | 204 | | |
| |||
673 | 690 | | |
674 | 691 | | |
675 | 692 | | |
| 693 | + | |
676 | 694 | | |
677 | 695 | | |
678 | 696 | | |
| |||
708 | 726 | | |
709 | 727 | | |
710 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
711 | 734 | | |
712 | 735 | | |
713 | 736 | | |
| |||
730 | 753 | | |
731 | 754 | | |
732 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
733 | 765 | | |
734 | 766 | | |
735 | 767 | | |
| |||
0 commit comments