Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New method: MutexImpl::is_granted()
[simgrid.git] / teshsuite / s4u / trace-integration / trace-integration.cpp
index b820e99b3c28ab53018c91111e2cb5a454b66bc6..a61b498ca40cfc36170d71124a4332410c496940 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2020. The SimGrid Team.
+/* Copyright (c) 2009-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -6,16 +6,17 @@
 
 #include "simgrid/s4u.hpp"
 
-XBT_LOG_NEW_DEFAULT_CATEGORY(test_trace_integration, "Messages specific for this msg example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(test_trace_integration, "Messages specific for this example");
 
 /** test the trace integration cpu model */
-static void test_trace(int argc, char* argv[])
+static void test_trace(std::vector<std::string> args)
 {
-  xbt_assert(argc == 3, "Wrong number of arguments!\nUsage: %s <task computational size in FLOPS> <task priority>",
-             argv[0]);
+  xbt_assert(args.size() == 3,
+             "Wrong number of arguments!\nUsage: %s <task computational size in FLOPS> <task priority>",
+             args[0].c_str());
 
-  double task_comp_size = std::stod(argv[1]);
-  double task_prio      = std::stod(argv[2]);
+  double task_comp_size = std::stod(args[1]);
+  double task_prio      = std::stod(args[2]);
 
   XBT_INFO("Testing the trace integration cpu model: CpuTI");
   XBT_INFO("Task size: %f", task_comp_size);