Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sanitize the OOP of kernel::profile
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 3 Feb 2019 14:57:04 +0000 (15:57 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 3 Feb 2019 14:57:16 +0000 (15:57 +0100)
commit2d37e348a09783cda723c7019640ee69de168324
tree94cd95f4f33415932c147e7eaaa2a7131d535f92
parentce64a1b73038f9f0f6aca7e3190bf1e4208f588e
sanitize the OOP of kernel::profile

* Add a Profile::next() returning the next event of the list.
  This opens the way to future profile kinds, based on statistical
  generator instead of explicit lists.
  Earlier, FES was advancing the internal pointer of the Profile.

* Change FutureEvtSet::add_trace(Profile, Resource) into Profile::schedule(FutureEvtSet, Resource).
  This way, Profile knows about its FES and there is no need for a
  global (also making testing easier), and FES does not have to mess
  with the internals of Profile.
src/kernel/resource/Resource.cpp
src/kernel/resource/profile/trace_mgr.cpp
src/kernel/resource/profile/trace_mgr.hpp
src/kernel/resource/profile/trace_mgr_test.cpp
src/surf/cpu_interface.cpp
src/surf/cpu_ti.cpp
src/surf/network_interface.cpp