Commit 8598baed authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add timing information to tasks directly.



Former-commit-id: 230f10be4b23fd292d354bd18ec64d30f2b57228
parent fccedeaf
......@@ -722,8 +722,10 @@ void *runner_main ( void *data ) {
/* Get the cells. */
ci = t->ci;
cj = t->cj;
t->rid = r->id;
/* Different types of tasks... */
t->tic = gettics();
switch ( t->type ) {
case task_type_self:
if ( t->subtype == task_subtype_density )
......@@ -769,6 +771,7 @@ void *runner_main ( void *data ) {
default:
error( "Unknown task type." );
}
t->toc = gettics();
/* Resolve any dependencies. */
for ( k = 0 ; k < t->nr_unlock_tasks ; k++ )
......
......@@ -57,6 +57,9 @@ struct task {
struct cell *ci, *cj;
int rid;
ticks tic, toc;
int nr_unlock_tasks;
struct task *unlock_tasks[ task_maxunlock ];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment