projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gather timing stats for a Task when it completes.
[ghc-hetmet.git]
/
rts
/
posix
/
OSThreads.c
diff --git
a/rts/posix/OSThreads.c
b/rts/posix/OSThreads.c
index
07bd762
..
cff3782
100644
(file)
--- a/
rts/posix/OSThreads.c
+++ b/
rts/posix/OSThreads.c
@@
-16,6
+16,7
@@
#if defined(THREADED_RTS)
#include "OSThreads.h"
#include "RtsUtils.h"
#if defined(THREADED_RTS)
#include "OSThreads.h"
#include "RtsUtils.h"
+#include "Task.h"
#if HAVE_STRING_H
#include <string.h>
#if HAVE_STRING_H
#include <string.h>
@@
-140,6
+141,7
@@
forkOS_createThreadWrapper ( void * entry )
Capability *cap;
cap = rts_lock();
cap = rts_evalStableIO(cap, (HsStablePtr) entry, NULL);
Capability *cap;
cap = rts_lock();
cap = rts_evalStableIO(cap, (HsStablePtr) entry, NULL);
+ taskTimeStamp(myTask());
rts_unlock(cap);
return NULL;
}
rts_unlock(cap);
return NULL;
}