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
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:
There could be multiple processes of the same executable on the same host
There could be multiple processes of the same executable on different hosts (spread in the network)
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)
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)