[experimental] Ask copilot to check perf profile degradation (#146271)

We can optionally add copilot as a reviewer. As per
[documentation](https://docs.github.com/en/copilot/how-tos/agents/copilot-code-review/using-copilot-code-review#customizing-copilots-reviews-with-custom-instructions),
we can customize the review. This PR asks it to pay attention to the
kind of code that might corrupt performance data, or, in the case of
sample profiling, result in poor profiles by dropping debug info.
This commit is contained in:
Mircea Trofin 2025-06-30 08:09:28 -07:00 committed by GitHub
parent 00cdaa5c39
commit 425359a83d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
.github/copilot-instructions.md vendored Normal file
View File

@ -0,0 +1,4 @@
When performing a code review, pay close attention to code modifying a function's
control flow. Could the change result in the corruption of performance profile
data? Could the change result in invalid debug information, in particular for
branches and calls?