1 /* Copyright (c) 2016-2021. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
13 // Methods used to parse and store the values for timing injections in smpi
14 struct s_smpi_factor_t {
16 std::vector<double> values;
24 extern double total_benched_time;
25 extern size_t total_malloc_size;
26 extern size_t total_shared_size;
27 extern size_t max_malloc_size;
29 XBT_PUBLIC std::vector<s_smpi_factor_t> parse_factor(const std::string& smpi_coef_string);
30 XBT_PUBLIC void add_benched_time(double time);
31 XBT_PUBLIC void account_malloc_size(size_t size, const char* file, int line);
32 XBT_PUBLIC void account_shared_size(size_t size);
33 XBT_PUBLIC void print_time_analysis(double time);
34 XBT_PUBLIC void print_memory_analysis();