Files
watrbx-game-engine/Base/include/microprofile/dtrace_contextswitch
T
2025-09-18 17:55:52 -04:00

11 lines
296 B
Bash

#!/bin/sh
MPPIPE=/tmp/.microprofilecspipe
while true;
do
echo "DTrace run; output file: $MPPIPE"
mkfifo $MPPIPE
dtrace -q -n fbt::thread_dispatch:return'{printf("MPTD %x %x %x\n", cpu, tid, machtimestamp)}' -o $MPPIPE
rm $MPPIPE
read -p "DTrace run finished, press Enter to restart..."
done