Try this test:

1) quit Hugs and restart with profiling turned on
2) run main
3) look at profile

I suspect you won't see the tests

4) run a few tests
5) look at profile

Now you will see some tests

6) run main again (without quitting)
7) look at profile

Now you will see some tests - their numbers will be exactly the same as
at the end of the previous run.


Reason: Hugs doesn't reset updateable top-level thunks (aka CAFs) to
their unevaluated state between runs.  (There's arguments on both
sides about whether it should [not].)  I think there are some patches
floating around that reset CAFs (but could be hallucinating).  STG-Hugs
does/can reset CAFs between runs - not sure if it has profiling yet.

Alastair


Reply via email to