Add sampling interface and tests

Merged Reyhaneh Karimipour requested to merge rkarimip/xtrace-cpp:master into master

Merge request reports