diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-06-07 12:44:07 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-06-07 12:44:07 +0000 |
commit | a91cc8496bf4ea7fe1e3ad9d97836152f3939ffa (patch) | |
tree | e7b25c3ce7293d0569da142f7928fde9a9257359 /rts/Main.c | |
parent | 90d88088ee8b3697ce68f7b1e07506bc4f33687d (diff) | |
download | haskell-a91cc8496bf4ea7fe1e3ad9d97836152f3939ffa.tar.gz |
Gather timing stats for a Task when it completes.
Previously we did this just for workers, now we do it for the main
thread and for forkOS threads too.
Diffstat (limited to 'rts/Main.c')
-rw-r--r-- | rts/Main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Main.c b/rts/Main.c index 6aef280e25..5a1ab10927 100644 --- a/rts/Main.c +++ b/rts/Main.c @@ -105,6 +105,7 @@ int main(int argc, char *argv[]) void *cap = rts_lock(); cap = rts_evalLazyIO(cap,(HaskellObj)(void *)mainIO_closure, NULL); status = rts_getSchedStatus(cap); + taskTimeStamp(myTask()); rts_unlock(cap); } |