Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Comply with clang-format rules
[simgrid.git] / src / kernel / resource / profile / trace_mgr.hpp
1 /* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved.          */
2
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. */
5
6 #ifndef SURF_PMGR_H
7 #define SURF_PMGR_H
8
9 #include "simgrid/forward.h"
10 #include "src/kernel/resource/profile/Profile.hpp"
11 #include "xbt/sysdep.h"
12
13 #include <queue>
14 #include <vector>
15
16 extern XBT_PRIVATE simgrid::kernel::profile::FutureEvtSet future_evt_set;
17
18 /**
19  * @brief Free a trace event structure
20  *
21  * This function frees a trace_event if it can be freed, ie, if it has the free_me flag set to 1.
22  * This flag indicates whether the structure is still used somewhere or not.
23  * When the structure is freed, the argument is set to nullptr
24  */
25 XBT_PUBLIC void tmgr_trace_event_unref(simgrid::kernel::profile::Event** trace_event);
26 XBT_PUBLIC void tmgr_finalize();
27
28 #endif /* SURF_PMGR_H */