nothunks: Examine values for unexpected thunks

[ apache, development, library ] [ Propose Tags ] [ Report a vulnerability ]

Long lived application data typically should not contain any thunks. This library can be used to examine values for unexpected thunks, which can then be used in assertions. This can be invaluable in avoiding memory leaks, or tracking down existing ones.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
bytestring

Provide instances for bytestring

Enabled
text

Provide instances for text

Enabled
vector

Provide instances for vector

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.2.1.0, 0.2.1.1, 0.3.0.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), bytestring (>=0.10 && <0.13), containers (>=0.5 && <0.8), ghc-heap, stm (>=2.5 && <2.6), text (>=1.2 && <1.3 || >=2 && <2.2), time (>=1.5 && <1.15), vector (>=0.12 && <0.14), wherefrom-compat (>=0.1.1 && <0.2) [details]
Tested with ghc ==8.10 || ==9.0 || ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10
License Apache-2.0[multiple license files]
Copyright 2018-2024 Input Output Global Inc (IOG)
Author IOG
Maintainer Marcin Szamotulski <coot@coot.me>
Revised Revision 1 made by ErikDeCastroLopo at 2024-11-12T00:30:05Z
Category Development
Bug tracker https://github.com/input-output-hk/nothunks
Source repo head: git clone https://github.com/input-output-hk/nothunks
Uploaded by coot at 2024-08-13T11:35:34Z
Distributions Arch:0.2.0, LTSHaskell:0.1.5, NixOS:0.1.5, Stackage:0.3.0.0
Reverse Dependencies 4 direct, 1 indirect [details]
Downloads 18624 total (356 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for nothunks-0.3.0.0

[back to package description]

nothunks

CI Tests

Long lived application data typically should not contain any thunks. This library can be used to examine values for unexpected thunks, which can then be used in assertions. This can be invaluable in avoiding memory leaks, or tracking down existing ones.

See my presentation MuniHac 2020: Being lazy without being bloated for an overview, motivating the library and explaining how it is intended to be used and how it works internally.

nothunks will try to get source information from info tables. For that one needs to use GHC 9.2 or newer and compile the code with -finfo-table-map. More precise information will be available if -fdistinct-constructor-tables flag is used as well.