X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..8be89720f55b4ceeb2877531ae1602cc7ed947d6:/src/instr/instr_smpi.hpp diff --git a/src/instr/instr_smpi.hpp b/src/instr/instr_smpi.hpp index ec09a78133..d0633285e8 100644 --- a/src/instr/instr_smpi.hpp +++ b/src/instr/instr_smpi.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2023. 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. */ @@ -24,6 +24,7 @@ XBT_PRIVATE void TRACE_smpi_init(aid_t pid, const std::string& calling_func); class smpi_trace_call_location_t { public: + std::string func_call; std::string filename; int linenumber = 0; @@ -35,6 +36,8 @@ public: return previous_filename + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' + std::to_string(linenumber); } + + std::string get_call_location() const { return filename + ":" + std::to_string(linenumber) + ":" + func_call + "()"; } }; #endif