Programmatic Access to Profiling Data
Motivation
I would like to implement application performance monitoring integration so that continuous profilers can be used in production (e.g. https://docs.datadoghq.com/tracing/profiler/). The problem I've run into is that GHC only seems to export that sort of info to a file and not via the GHC.Stats
package.
https://hackage.haskell.org/package/base-4.14.0.0/docs/GHC-Stats.html
Proposal
I'd like to export that data programmatically somehow in base
, though I'm not sure I'm familiar enough with GHC to implement it myself.