monsdar / CxxProf

CxxProf is a manual instrumented Profiling library for C++. It's goal is to provide easy integration into existing projects with just as little overhead as possible. It should be easy to remove the profiling mechanism during compile and runtime from the code.
GNU General Public License v3.0
58 stars 5 forks source link

DataStorage: Check if there is already an Activity with the same ID #32

Closed monsdar closed 10 years ago

monsdar commented 10 years ago

The DataStorage will crash if there already is an Activity with the same ID. This can happen if the same db is opened twice. It should be checked if there already is an activity with the given Id before storing it.

See TODO in DataStorage.cpp (currently line 266)

monsdar commented 10 years ago

Closing as this issue is very unlikely to come up. It will also cost performance if checked continuously if the ActivityID is already in use.