Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a13006fdb9b3fbbfe5e1ea50e4e30cc871af24a9
[simgrid.git] / examples / lua / tracing / master_slave_trace.lua
1 -- Copyright (c) 2011, 2014. The SimGrid Team.
2 -- All rights reserved.
3
4 -- This program is free software; you can redistribute it and/or modify it
5 -- under the terms of the license (GNU LGPL) which comes with this package.
6
7 dofile 'master.lua'
8 dofile 'slave.lua'
9
10 require "simgrid"
11 -- Declaring the simulation tracing
12 simgrid.Trace.start();
13 -- Declaring tracing categories
14 simgrid.Trace.category("compute");
15 --:
16 simgrid.Trace.category("finalize");
17
18 if (#arg == 2) then
19 simgrid.platform(arg[1])
20 simgrid.application(arg[2])
21 else
22 simgrid.platform("../../msg/small_platform.xml")
23 simgrid.application("../deploy.xml")
24 end
25
26 simgrid.run()
27 simgrid.info("Simulation's over.See you.")
28 simgrid.Trace.finish()
29