Hi,
I am trying to use the mutator_cpu_ns and mutator_elapsed_ns from GHC 8.2 RTSStats structure retrieved using getRTSStats API documented here - https://hackage.haskell.org/package/base-4.10.0.0/docs/GHC-Stats.html . I am seeing that the values of these stats retrieved about 30 ms later are lower than the values retrieved earlier. Sometimes even after 100 ms the values decrease from the previous ones. However, as the time duration between two calls increase this becomes less and less likely. Is this an expected behavior or am I using it incorrectly? If it is expected, why does it happen, what is the underlying mechanism that makes it happen? Thanks, harendra _______________________________________________ ghc-devs mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs |
Harendra Kumar <[hidden email]> writes:
> Hi, > > I am trying to use the mutator_cpu_ns and mutator_elapsed_ns from GHC 8.2 > RTSStats structure retrieved using getRTSStats API documented here - > https://hackage.haskell.org/package/base-4.10.0.0/docs/GHC-Stats.html . > > I am seeing that the values of these stats retrieved about 30 ms later are > lower than the values retrieved earlier. Sometimes even after 100 ms the > values decrease from the previous ones. However, as the time duration > between two calls increase this becomes less and less likely. > > Is this an expected behavior or am I using it incorrectly? If it is > expected, why does it happen, what is the underlying mechanism that makes > it happen? > issues, e.g. #14257) however what you describe doesn't seem to fit that description. Do you have a simple repro? Is there anything special about your program (e.g. lots of FFI calls)? Cheers, - Ben _______________________________________________ ghc-devs mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs |
Hi Ben, -harendra On 9 November 2017 at 23:49, Ben Gamari <[hidden email]> wrote: Harendra Kumar <[hidden email]> writes: _______________________________________________ ghc-devs mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs |
Ben, Thanks, Harendra On 10 November 2017 at 00:12, Harendra Kumar <[hidden email]> wrote:
_______________________________________________ ghc-devs mailing list [hidden email] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs |
Free forum by Nabble | Edit this page |