Skip to content

zeromq-chef/zeromq-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zeromq-cookbook

Delicious ZeroMQ recipes!

Preinstall

Tested on Ubuntu 20.04(WSL2).

Install clang compiler, zmq lib and Google unit test gtest. We need python3 to install Google cpplint and latest cmake package.

 $ sudo apt install -y clang libczmq-dev libgtest-dev python3

If you want setup pip3 package bin.

 $ echo "export PATH=\$PATH:\$HOME/.local/bin" >> .bashrc && source .bashrc

Install cmake.

 $ pip3 install --upgrade cmake

Performance and memory analysis

Install uftrace and valgrind.

 $ sudo apt -y install uftrace valgrind

Do uftrace to find performance tuning points.

 $ uftrace main

Do valgrind to check memory leaks.

 $ valgrind main

lint

Do Google cpplint to lint up code.

 $ cpplint main

Reference