Skip to content

Instantly share code, notes, and snippets.

@HenningTimm
HenningTimm / rust_mem_profiling.md
Last active January 14, 2024 15:58
Memory profiling Rust code with heaptrack in 2019
------------------------------------------------------------------------------------------
-- A formalization of the Cheryl's birtday problem; using Haskell/SBV
--
-- See: http://www.nytimes.com/2015/04/15/science/a-math-problem-from-singapore-goes-viral-when-is-cheryls-birthday.html
--
-- By Levent Erkok, This file is in the public domain. Use it as you wish!
--
-- NB. Thanks to Amit Goel for suggesting the formalization strategy used in here.
------------------------------------------------------------------------------------------