Skip to content

Commit 0c434ba

Browse files
committed
Use macOS xctrace instead of instruments
1 parent 0450498 commit 0c434ba

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Performance/perf_runner.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ function profile_harness() {
151151
perf_dir="$3"
152152

153153
echo "Running $description test harness in Instruments..."
154-
instruments -t "$script_dir/Protobuf" -D "$results_trace" \
155-
"$harness" -e DYLD_LIBRARY_PATH "$perf_dir/_generated"
154+
mkdir -p "$results_trace"
155+
xctrace record --template 'Time Profiler' --output "$results_trace" \
156+
--env DYLD_LIBRARY_PATH="$perf_dir/_generated" \
157+
--launch -- "$harness"
156158
}
157159

158160
# Inserts the partial visualization results from all the languages tested into
@@ -359,6 +361,5 @@ EOF
359361

360362
insert_visualization_results "$partial_results" "$results_js"
361363

362-
# Open the Instruments trace and HTML report at the end.
363-
open -g "$display_results_trace.trace"
364+
# Open the HTML report at the end.
364365
open -g "$script_dir/harness-visualization.html"

0 commit comments

Comments
 (0)