statgrab alternatives and similar packages
Based on the "FFI" category.
Alternatively, view statgrab alternatives based on common mentions on social networks and blogs.
-
inline-c
Write Haskell source files including C code inline. No FFI required. -
inline-java
Haskell/Java interop via inline Java code in Haskell modules. -
bindings-DSL
Library and macros to simplify writing Haskell FFI code -
bindings-lxc
Direct Haskell bindings to LXC (Linux containers) C API. -
bindings-levmar
Low level Haskell bindings to the C levmar (Levenberg-Marquardt) library -
hmatrix-gsl-stats
GSL Statistics functions for Haskell hmatrix -
bindings-gobject
Low level binding supporting GObject and derived libraries -
storable-static-array
Statically-sized array wrappers with Storable instances for FFI marshaling -
bindings-sc3
Haskell bindings to the SuperCollider synthesis engine -
fixed-storable-array
fixed-size StorableArray wrapper with its own Storable instance
Clean code begins in your IDE with SonarLint
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of statgrab or a related project?
README
Statgrab
Haskell bindings to the portable system statistics libstatgrab
library.
Table of Contents
Introduction
libstatgrab
is a library that provides cross platform access to statistics
about the system on which it's run. It's written in C and presents a selection
of useful interfaces which can be used to access key system statistics.
The current list of statistics includes CPU usage, memory utilisation, disk usage,
process counts, network traffic, disk I/O, and more.
The current list of supported and tested platforms includes OSX, FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX.
Please see the libstatgrab
homepage
for more information.
Further documentation can be found on Hackage.
Compatibility
libstatgrab
0.9.0
is required.
While the bindings should correctly build on the same platforms as supported by the library, only OSX and Linux have currently been tested.
Installation
Install libstatgrab
0.9.0
from a mirror,
and then run cabal install
.
Examples
module Main (main) where
import Control.Monad.IO.Class
import System.Statgrab
main :: IO ()
main = do
runStats $ (snapshot :: Stats Host) >>= liftIO . print
runStats $ (snapshots :: Stats [NetworkInterface]) >>= liftIO . print
Contributing
For any problems, comments or feedback please create an issue [here on GitHub](github.com/brendanhay/statgrab/issues).
Licence
statgrab is released under the Mozilla Public License Version 2.0
*Note that all licence references and agreements mentioned in the statgrab README section above
are relevant to that project's source code only.