[commit: ghc] master: Abstract over the way eventlogs are flushed (4dfc6d1)
git at git.haskell.org
git at git.haskell.org
Tue Jan 31 23:50:43 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/4dfc6d1c40b298d4b8f136e46420227eda60a03d/ghc
>---------------------------------------------------------------
commit 4dfc6d1c40b298d4b8f136e46420227eda60a03d
Author: alexbiehl <alex.biehl at gmail.com>
Date: Tue Jan 31 16:06:33 2017 -0500
Abstract over the way eventlogs are flushed
Currently eventlog data is always written to a file `progname.eventlog`.
This patch introduces the `flushEventLog` field in `RtsConfig` which
allows to customize the writing of eventlog data.
One possible scenario is the ongoing live-profile-monitor effort by
@NCrashed which slurps all eventlog data through `fluchEventLog`.
`flushEventLog` takes a buffer with eventlog data and its size and
returns `false` (0) in case eventlog data could not be procesed.
Reviewers: simonmar, austin, erikd, bgamari
Reviewed By: simonmar, bgamari
Subscribers: qnikst, thomie, NCrashed
Differential Revision: https://phabricator.haskell.org/D2934
>---------------------------------------------------------------
4dfc6d1c40b298d4b8f136e46420227eda60a03d
docs/users_guide/8.2.1-notes.rst | 4 ++
docs/users_guide/runtime_control.rst | 43 ++++++++++--
includes/RtsAPI.h | 4 ++
includes/rts/EventLogWriter.h | 40 +++++++++++
rts/RtsFlags.c | 1 +
rts/Trace.c | 21 +++++-
rts/eventlog/EventLog.c | 128 ++++++++++++++---------------------
rts/eventlog/EventLog.h | 3 +-
rts/eventlog/EventLogWriter.c | 122 +++++++++++++++++++++++++++++++++
9 files changed, 281 insertions(+), 85 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 4dfc6d1c40b298d4b8f136e46420227eda60a03d
More information about the ghc-commits
mailing list