
On 26 January 2005 09:13, Serge D. Mechveliani wrote:
The indentation in the profiling report or in the source program?
In the profiling report.
The report prints some function names not from the beginning of the line ... Maybe, you can give a simple example of a program with SCC when the center is printed twice? For I do not understand this point.
eg. f x = x * 2 g x = f x main = print (f 3 + g 3) here f is called both from main and from g, and will appear twice in the profile.
Now I replaced SCC with -auto-all, and it gives a report which looks satisfactory. The first part lpo TermComp 29.9 47.0 relates Prelude1 13.1 1.5 ... is helpful all right. But I also need to know how many times there was called a certain function f, no matter from where it is called and whether it occurs in the first part of the report. I search for `f' in the large second part of the report. And find the two (often many) lines (with different indentation):
f Module1 10 20 ... ... f Module1 121 30 ...
So, `f' was entered 20 times from one point and 30 times from another, and 50 times in total. Right?
Yes. Simon
participants (1)
-
Simon Marlow