[MLton] profiling question
Lukasz S Ziarek
lziarek@cs.purdue.edu
Tue, 16 Mar 2004 21:54:32 -0500 (EST)
I decided to just use my own counters and create variables that I append
into the program. The only thing I am not sure about is how to send my
counters to stdout or a file.
Luke
On Tue, 16 Mar 2004, Lukasz S Ziarek wrote:
> 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
>
> _______________________________________________
> MLton mailing list
> MLton@mlton.org
> http://www.mlton.org/mailman/listinfo/mlton
>