[GHC] #15440: Flush eventlog in hs_init_ghc

GHC ghc-devs at haskell.org
Thu Jul 26 08:23:44 UTC 2018


#15440: Flush eventlog in hs_init_ghc
-------------------------------------+-------------------------------------
        Reporter:  maoe              |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by maoe:

Old description:

> Currently GHC RTS traces some basic information about the process in
> `hs_init_ghc` but the information is often flushed to the eventlog at the
> very end of the process lifetime. Or even worse, it's never written to it
> if the process terminates abnormally.
>
> This is very inconvenient because the information contains some useful
> stuff like EVENT_WALL_CLOCK_TIME, which is quite important if user wants
> to sync timestamps in the eventlog with clock.
>
> The simplest way to fix the issue is to flush the eventlog buffer in
> `hs_init_ghc`.
>
> This is implemented at
> https://github.com/maoe/ghc/commit/30e20e4e66adccc28c59c8876331918d30eacef2.

New description:

 Currently GHC RTS traces some basic information about the process in
 `hs_init_ghc` but the information is often flushed to the eventlog at the
 very end of the process lifetime. Or even worse, it's never written to it
 if the process terminates abnormally.

 This is very inconvenient because the information contains some useful
 stuff like `EVENT_WALL_CLOCK_TIME`, which is quite important if user wants
 to sync timestamps in the eventlog with clock.

 The simplest way to fix the issue is to flush the eventlog buffer in
 `hs_init_ghc`.

 This is implemented at
 https://github.com/maoe/ghc/commit/30e20e4e66adccc28c59c8876331918d30eacef2.

--

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15440#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list