You can use record=1.txt as tkprof option.
Thanks for the heads up, haven't seen that tkprof option before.
I'll tuck this code away for the basis of my super duper trace file analyzer that I never seem to get around to writing :)
Content Copyright 2006-2015. Links are copyright of respective owners.