Skip to content

Instantly share code, notes, and snippets.

@markd2
markd2 / spy.d
Created May 17, 2013 01:56
Look at objective-C messages being sent in an application running in the simulator. "Interesting" symbols (configured in the first BEGIN block, or one provided on the command line) will get stack traces dumped. "ignored" symbols are not logged.
#!/usr/sbin/dtrace -s
/* Run like:
% sudo csh
# ./spy.d $PROCESS_ID [$INTERESTING_PROBEPROV]
Prints a line of dashes every 5 seconds to delineate different experiments.
*/
#pragma D option quiet
@delijati
delijati / gist:1629405
Created January 17, 2012 22:28
python idastar vs astar
import sys
import copy
import time
import math
import heapq
import argparse
FINFINITY = 5000
USAGE = "python puzzle8.py [bfs|idfs|astar|idastar]"