X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31cf054e59a7555c0717d73cd918f24b26e3f1a4..3ebb95127bac9bc6d8ba66319f1db561e9a5c6c1:/src/instr/jedule/jedule_output.cpp diff --git a/src/instr/jedule/jedule_output.cpp b/src/instr/jedule/jedule_output.cpp deleted file mode 100644 index 99a71dc7e5..0000000000 --- a/src/instr/jedule/jedule_output.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/* Copyright (c) 2010-2014. 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. */ - -#include "simgrid/jedule/jedule_output.hpp" -#include "simgrid/host.h" - -#include -#include -#include - -#include "xbt/dynar.h" -#include "xbt/asserts.h" - -#if HAVE_JEDULE - -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(jed_out, jedule, "Logging specific to Jedule output"); - -xbt_dynar_t jedule_event_list; - -void write_jedule_output(FILE *file, jedule_t jedule, xbt_dynar_t event_list) { - if (!xbt_dynar_is_empty(jedule_event_list)){ - - fprintf(file, "\n"); - - if (!jedule->jedule_meta_info.empty()){ - fprintf(file, " \n"); - for (auto elm: jedule->jedule_meta_info) - fprintf(file, " \n",elm.first,elm.second); - fprintf(file, " \n"); - } - - fprintf(file, " \n"); - jedule->root_container->print(file); - fprintf(file, " \n"); - - fprintf(file, " \n"); - unsigned int i; - jed_event_t event; - xbt_dynar_foreach(event_list, i, event) { - event->print(file); - } - fprintf(file, " \n"); - - fprintf(file, "\n"); - } -} - -void jedule_init_output() { - jedule_event_list = xbt_dynar_new(sizeof(jed_event_t), nullptr); -} - -void jedule_cleanup_output() { - while (!xbt_dynar_is_empty(jedule_event_list)) { - jed_event_t evt = xbt_dynar_pop_as(jedule_event_list, jed_event_t) ; - evt->deleteEvent(); - } - - xbt_dynar_free_container(&jedule_event_list); -} - -void jedule_store_event(jed_event_t event) { - xbt_assert(event != nullptr); - xbt_dynar_push(jedule_event_list, &event); -} -#endif