Add remaining repository User Timings
What does this MR do and why?
This adds the timings left over from the first-row and first-highlighted-content work. I used the end points Jacques agreed to.
For the list, I wait for the last automatic fetch and then a $nextTick, so the entries have updated. That means the last page or the 1000 entry limit, before anyone clicks "Show more".
For the file, I compare the chunks' totalLines sum with the raw line count. Counting chunks wouldn't distinguish the two worker replies on files of 70 lines or fewer. This also covers LFS files. The full highlighting timing only records once the source viewer is showing the chunks, though offscreen chunks can still be raw text.
I put the last commit mark in last_commit.vue for both layouts. It records the first result for a path and leaves out the 30 second polls. Code owners stays in the old layout, once per path. I kept its mark in the repository mount so the blob show bundle doesn't get one. Both pick repository-tree-load-start or repository-blob-load-start from the current route.
References
Closes #638419 (closed)
Related to #402772 (closed)
Screenshots or screen recordings
The UI looks the same. These are the names to look for in Timings:
Repository File List: All rowsRepository File Viewer: Full highlighted contentRepository File List: Last commitandRepository File Viewer: Last commitRepository File List: Code ownersandRepository File Viewer: Code owners
How to set up and validate locally
Record a performance profile and open a folder with more than 100 entries, then a code file longer than 70 lines. Check for the names above, and try a short file and an LFS file too. Then open a README that renders as a preview and a file with the size warning. Neither should record Repository File Viewer: Full highlighted content. For code owners, use the old layout on a project with code owners enabled.
Click "Show more" and wait for a commit poll. Neither should add another corresponding measure. Moving to another folder or file should record timings for that visit.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.