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

DynNetwork: Find a way to identify the current application #30

Open monsdar opened 10 years ago

monsdar commented 10 years ago

The current code just takes a random number between 0 and 9999 to set an identifier. This model breaks in 1 of 10000 cases as there could be the same identifier twice. We need to find a way to generate a unique identifier. The following must be the case:

Perhaps the best bet would be to take some kind of hash from the process id and network address.

See TODO at NetworkCxxProf.cpp (currently line 64)