Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9721397c authored by thierry's avatar thierry
Browse files

Add display task count

parent 2f5ce3b7
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,9 @@ work_analysis<- function( df_parallel, df_task ) ...@@ -47,7 +47,9 @@ work_analysis<- function( df_parallel, df_task )
{ {
df <- df_task %>% filter( (Start>= df_parallel$Start[i]) & (End <= df_parallel$End[i]) ); df <- df_task %>% filter( (Start>= df_parallel$Start[i]) & (End <= df_parallel$End[i]) );
s <- sum(df$Duration); s <- sum(df$Duration);
taskcount <- nrow( df);
cat("Region parallel id",i," on ",p," thread(s)\n"); cat("Region parallel id",i," on ",p," thread(s)\n");
cat(" taskcount : ",taskcount, "\n");
cat(" duration : ",df_parallel$Duration[i], "\n"); cat(" duration : ",df_parallel$Duration[i], "\n");
cat(" work : ",s, "\n"); cat(" work : ",s, "\n");
cat(" efficiency : ",s/df_parallel$Duration[i]/p, "\n"); cat(" efficiency : ",s/df_parallel$Duration[i]/p, "\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment