DataDog/ddprof

Configurable sampling frequency

Closed this issue ยท 5 comments

From what I understand from @aristotelhs, ddprof has a fixed sampling frequency of 100hz.

This is higher than we wanted/expected, and we are a tad concerned about leaving this on all continuously in prod without impacting performance. (Additionally, setting a lower frequency should save storage costs in datadog! ๐Ÿ˜Š)

Can we have the ability to configure this?
Thank you!

Yes, this is indeed supported. Here is an example:

./ddprof --show_config yes -e sCPU,period=10

I will add more documentation on the grammar in future releases. We are still working on the configuration mechanisms.

Thank you. This is indeed helpful. We did not find documentation about the rest of the options and how they could be used to fine tune, looking forward to the additions.
So this issue can be closed for now.

Thanks for the feedback. Leaving this as reference to make sure I push the documentation PR.

Thank you;

This was documented as part of the PR #277 , the watcher configurations will change with the addition of live heap tracking.