Add last trigger time to samplesnightly-2021.03.15
commitbfc76ec0d0ce93efac4e49eafd2e7a5503a8aff2
authorShai Duvdevani <duv@fb.com>
Sun, 14 Mar 2021 23:17:52 +0000 (14 16:17 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sun, 14 Mar 2021 23:20:37 +0000 (14 16:20 -0700)
tree558d30100853242d5273ef2be01fe87f38868b33
parent6409e469ba373d8478f1f05a4a9cc41aa729e938
Add last trigger time to samples

Summary:
To be even more accurate, we can include the last time we triggered a surprise flag.
This is an approximation and will still be undercounting for samples which get triggered beyond the sampling rate.
This is simpler than maintaining thread locals and locks on flag+flag set times

Differential Revision: D27015065

fbshipit-source-id: e04afcb75569f79402f5480d89575908adb47117
hphp/hack/hhi/stdlib/builtins_xenon.hhi
hphp/runtime/ext/xenon/ext_xenon.cpp
hphp/runtime/ext/xenon/ext_xenon.h
hphp/runtime/ext/xenon/ext_xenon.php