A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s:k:profile: turn two functions into static methods
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
b5d0b2d
..
0e8dce3
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-660,11
+660,11
@@
void sg_platf_new_trace(simgrid::kernel::routing::ProfileCreationArgs* profile)
{
simgrid::kernel::profile::Profile* mgr_profile;
if (not profile->file.empty()) {
- mgr_profile =
tmgr_trace_new_
from_file(profile->file);
+ mgr_profile =
simgrid::kernel::profile::Profile::
from_file(profile->file);
} else {
xbt_assert(not profile->pc_data.empty(), "Trace '%s' must have either a content, or point to a file on disk.",
profile->id.c_str());
- mgr_profile =
tmgr_trace_new_
from_string(profile->id, profile->pc_data, profile->periodicity);
+ mgr_profile =
simgrid::kernel::profile::Profile::
from_string(profile->id, profile->pc_data, profile->periodicity);
}
traces_set_list.insert({profile->id, mgr_profile});
}