Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rearrange lua example in separate simulation component files
[simgrid.git] / examples / lua / tracing / master_slave_trace.lua
1 dofile 'master.lua'
2 dofile 'slave.lua'
3
4 require "simgrid"
5 -- Declaring the simulation tracing
6 simgrid.Trace.start();
7 -- Declaring tracing categories
8 simgrid.Trace.category("compute");
9 --:
10 simgrid.Trace.category("finalize");
11
12 if (#arg == 2) then
13 simgrid.platform(arg[1])
14 simgrid.application(arg[2])
15 else
16 simgrid.platform("../../msg/small_platform.xml")
17 simgrid.application("../deploy.xml")
18 end
19
20 simgrid.run()
21 simgrid.info("Simulation's over.See you.")
22 simgrid.clean()
23 simgrid.Trace.finish()
24