# An introduction to ghc-debug: precise memory analysis for Haskell programs

**URL:** <https://discourse.haskell.org/t/an-introduction-to-ghc-debug-precise-memory-analysis-for-haskell-programs/1771>\
**Category:** Links\
**Created:** [January 13, 2021, 8:20pm UTC](https://discourse.haskell.org/t/an-introduction-to-ghc-debug-precise-memory-analysis-for-haskell-programs/1771 "2021-01-13T20:20:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpickering](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mpickering/32/4585_2.png) [@mpickering](https://discourse.haskell.org/u/mpickering)\
**Post date:** [January 13, 2021, 8:20pm UTC](https://discourse.haskell.org/t/an-introduction-to-ghc-debug-precise-memory-analysis-for-haskell-programs/1771/1 "2021-01-13T20:20:17Z")

</div>

[![](https://img.youtube.com/vi/9zuAsGk9xoM/maxresdefault.jpg "An introduction to ghc-debug: precise memory analysis for Haskell programs") ](https://www.youtube.com/watch?v=9zuAsGk9xoM)

---

<div class="post-metadata">

**Author:** ![unhammer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/unhammer/32/580_2.png) [@unhammer](https://discourse.haskell.org/u/unhammer)\
**Post date:** [January 18, 2021, 9:31am UTC](https://discourse.haskell.org/t/an-introduction-to-ghc-debug-precise-memory-analysis-for-haskell-programs/1771/2 "2021-01-18T09:31:37Z")

</div>

Is this related to [https://well-typed.com/blog/2021/01/first-look-at-hi-profiling-mode/](https://well-typed.com/blog/2021/01/first-look-at-hi-profiling-mode/) ?

---

<div class="post-metadata">

**Author:** ![adamgundry](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@adamgundry](https://discourse.haskell.org/u/adamgundry)\
**Post date:** [January 19, 2021, 8:56am UTC](https://discourse.haskell.org/t/an-introduction-to-ghc-debug-precise-memory-analysis-for-haskell-programs/1771/3 "2021-01-19T08:56:24Z")

</div>

Yes, this is part of a connected stream of work. `ghc-debug` will make use of the info table provenance entries generated by `-finfo-table-map` to show the source locations of closures.
