arbor-sim / arbor

The Arbor multi-compartment neural network simulation library.
https://arbor-sim.org
BSD 3-Clause "New" or "Revised" License
105 stars 59 forks source link

Remove internal Profiler in favour of Tracy #2266

Open thorstenhater opened 3 months ago

thorstenhater commented 3 months ago

I decided to remove the internal profiler since it had some hard to fix flaws:

Tracy on the other hand gives us

all in 3 macros.

I have some plans to add memory tracking later on, but I am reluctant to overload new and that seems to be the only way of getting into std::vector and friends.

Here's the moment when we add spikes:

Screenshot 2024-04-10 at 10 50 19

Some clean-up was done as well, mainly swapping std::shared_ptr{new T(...)} for std::make_shared<T>(...) and same for unique_ptr.