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

Refactor Zmq usage - Push/Pull not what we need? #41

Closed monsdar closed 10 years ago

monsdar commented 10 years ago

Push/Pull is thought to be used for work distribution, not for point-to-point communication as we need it. It works though, as we're just using a 1:1 connection. We should refactor the usage of zmq in CxxProf to use a more fitting model.

Note: Just flagged this issue as a bug as Zmq Push sockets are blocking the send function if there is no Pull-counterpart available. This means that if no CxxProf server runs, the users application will block after 1000 message attempts.

monsdar commented 10 years ago

Should be fixed, Pub/Sub is what was needed intentionally.