package memtrace
Streaming client for Memprof
Install
Dune Dependency
Authors
Maintainers
Sources
memtrace-v0.1.1.tbz
sha256=58fb90ca075269bb8bf6b50e76d343481b3ffa46cdc89fa70b1d1c49a4a918bd
sha512=71723ce8b495a0e9a6f7bf2aedefb5eb80beb29c95ba3c735e095bf8e772575dc4e01e424a9c9ae5df812a90b9026223ed777e3e64f97ede9ac8e01f215e99b5
Description
Generates compact traces of a program's memory use.
Published: 10 Sep 2020
README
memtrace
A streaming client for OCaml's Memprof, which generates compact traces of a program's memory use.
To profile the memory use of a program, start by putting this line somewhere at the program startup:
Memtrace.trace_if_requested ~context:"my program" ();;
If the MEMTRACE
environment variable is present, tracing begins to the filename it specifies. (If it's absent, nothing happens)
The ~context parameter is optional, and can be set to any string that helps to identify the trace file.
If the program daemonises, the call to trace_if_requested
should occur after the program forks, to ensure the right process is traced.
The resulting trace files can be analysed with some simple command-line tools in bin/. (More viewing tools coming soon!)
Dev Dependencies
None
Used by (2)
-
irmin-bench
< "2.7.1" | >= "3.0.0" & < "3.3.0"
-
memtrace_viewer
!= "v0.15.0"
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page