]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/trace-process-migration/s4u-trace-process-migration.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'add_remaining_comm_sync_bindings' into 'master'
[simgrid.git] / examples / cpp / trace-process-migration / s4u-trace-process-migration.cpp
index 5b0895794d4b469ddfa8d7aa36d768e59c63c881..0f4506ff071cf6465b441c3133b1bce5c9ecab8b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -49,10 +49,10 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  TRACE_category("migration_order");
+  simgrid::instr::declare_tracing_category("migration_order");
 
-  sg4::Actor::create("emigrant", sg4::Host::by_name("Fafard"), emigrant);
-  sg4::Actor::create("policeman", sg4::Host::by_name("Tremblay"), policeman);
+  sg4::Actor::create("emigrant", e.host_by_name("Fafard"), emigrant);
+  sg4::Actor::create("policeman", e.host_by_name("Tremblay"), policeman);
 
   e.run();
   return 0;