CxxProf
CxxProf copied to clipboard
DynNetwork: Find a way to identify the current application
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)