Browse Source

don't abort completely when there are too few measurements

Samuel Thibault 11 years ago
parent
commit
d02236668f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/starpu_codelet_histo_profile.in

+ 1 - 1
tools/starpu_codelet_histo_profile.in

@@ -64,7 +64,7 @@ size <- unique(mytable[,3])
 
 pdf(paste("$inputfile", codelet, arch, hash, size, "pdf", sep="."));
 
-h <- hist(val[val > quantile(val,0.01) & val<quantile(val,0.99)], col="red", breaks=50, density=10)
+try ( { h <- hist(val[val > quantile(val,0.01) & val<quantile(val,0.99)], col="red", breaks=50, density=10) } )
 
 dev.off()