[MLton] profiling question

Lukasz S Ziarek lziarek@cs.purdue.edu
Tue, 16 Mar 2004 19:41:44 -0500 (EST)


I read the profiling chapter in the users guide and it details very well
how to get time and space data, but I am interested in something slightly
easier to collect and was wondering how to use the profiler to do so. I am
trying to get some dynamic counts of coercions during executing to see
where/why the flatten all case fails when it does. I also have implimented
a flattener for refs of tuples and nested refs. Once again performance
seems to be hit or miss. What would be the best way to use the profiler to
keep a count of dynamic coercions. I know where all the coercion points
are, and how many coercion points exist for a given program. However, this
is a bit neive since there can easily be coercions in a loop. I assume
there is a profile command I can insert to keep a dynamic count, such that
at each coercion site it increments. Can anyone point me in the right
direction?

thanks,
Luke