File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 echo '${{ steps.base_alloc_metrics.outputs.metrics }}' > /tmp/metrics/base_alloc.json
6767 echo '${{ github.event.pull_request.number }}' > /tmp/metrics/pr_number.txt
6868
69+ - name : Publish metrics summary
70+ env :
71+ HEAD_TIMING : ${{ steps.head_timing_metrics.outputs.metrics }}
72+ BASE_TIMING : ${{ steps.base_timing_metrics.outputs.metrics }}
73+ HEAD_ALLOC : ${{ steps.head_alloc_metrics.outputs.metrics }}
74+ BASE_ALLOC : ${{ steps.base_alloc_metrics.outputs.metrics }}
75+ run : |
76+ {
77+ echo "## Hotpath profiling metrics"
78+ echo
79+ echo "### Timing"
80+ echo
81+ echo "<details><summary>Head</summary>"
82+ echo
83+ printf '```json\n'
84+ if [ -n "$HEAD_TIMING" ]; then
85+ printf '%s\n' "$HEAD_TIMING"
86+ else
87+ echo '{}'
88+ fi
89+ printf '```\n'
90+ echo
91+ echo "</details>"
92+ echo
93+ echo "<details><summary>Base</summary>"
94+ echo
95+ printf '```json\n'
96+ if [ -n "$BASE_TIMING" ]; then
97+ printf '%s\n' "$BASE_TIMING"
98+ else
99+ echo '{}'
100+ fi
101+ printf '```\n'
102+ echo
103+ echo "</details>"
104+ echo
105+ echo "### Allocation"
106+ echo
107+ echo "<details><summary>Head</summary>"
108+ echo
109+ printf '```json\n'
110+ if [ -n "$HEAD_ALLOC" ]; then
111+ printf '%s\n' "$HEAD_ALLOC"
112+ else
113+ echo '{}'
114+ fi
115+ printf '```\n'
116+ echo
117+ echo "</details>"
118+ echo
119+ echo "<details><summary>Base</summary>"
120+ echo
121+ printf '```json\n'
122+ if [ -n "$BASE_ALLOC" ]; then
123+ printf '%s\n' "$BASE_ALLOC"
124+ else
125+ echo '{}'
126+ fi
127+ printf '```\n'
128+ echo
129+ echo "</details>"
130+ } >> "$GITHUB_STEP_SUMMARY"
131+
69132 - uses : actions/upload-artifact@v4
70133 with :
71134 name : profile-metrics
You can’t perform that action at this time.
0 commit comments