3 ms·
One fun example is the "malloc Geiger counter", which clicks whenever memory is allocated: https://www.youtube.com/watch?v=7vn6aGgLKfQ https://www.youtube.com/w
by mkeeter 5y ago
One fun example is the "malloc Geiger counter", which clicks whenever memory is allocated:
https://www.youtube.com/watch?v=7vn6aGgLKfQ https://www.youtube.com/watch?v=7vn6aGgLKfQ
(Previous HN discussion: https://news.ycombinator.com/item?id=24303832 https://news.ycombinator.com/item?id=24303832)
- gnramires 5y agoCool! It doesn't really differentiate in terms of allocation volume (only frequency). It would be interesting if the tick rate was proportional to something like log(allocation rate) so you could get an idea if something really heavy is allocated.