File: exec-async.tesh

package info (click to toggle)
simgrid 3.25%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,308 kB
  • sloc: cpp: 100,922; ansic: 68,086; fortran: 6,061; xml: 5,176; f90: 5,123; java: 4,094; python: 2,623; perl: 1,843; sh: 1,241; makefile: 47; javascript: 7; sed: 6
file content (14 lines) | stat: -rw-r--r-- 971 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env tesh

$ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/exec-async.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
> [  0.000000] (1:wait@Fafard) Waiter executes 76296000 flops, should take 1 second.
> [  0.000000] (2:monitor@Ginette) Monitor executes 48492000 flops, should take 1 second.
> [  0.000000] (3:cancel@Boivin) Canceller executes 98095000 flops, should take 1 second.
> [  0.000000] (2:monitor@Ginette) Remaining amount of flops: 48492000 (100%)
> [  0.300000] (2:monitor@Ginette) Remaining amount of flops: 33944400 (70%)
> [  0.500000] (3:cancel@Boivin) I changed my mind, cancel!
> [  0.500000] (3:cancel@Boivin) Goodbye from canceller!
> [  0.600000] (2:monitor@Ginette) Remaining amount of flops: 19396800 (40%)
> [  0.900000] (2:monitor@Ginette) Remaining amount of flops: 4849200 (10%)
> [  1.000000] (1:wait@Fafard) Goodbye from waiter!
> [  1.200000] (2:monitor@Ginette) Goodbye from monitor!