[GHC] #7693: Flush .hp file at the end of each sample

#7693: Flush .hp file at the end of each sample -----------------------------+---------------------------------------------- Reporter: akio | Owner: Type: feature request | Status: new Priority: normal | Component: Runtime System Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Tools like hp2any-graph reads a .hp file as it's being written to. However writing to .hp files is currently block-buffered, causing a delay until the latest sample can be read. The attached patch adds a call to fflush every time a complete sample is written. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7693 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7693: Flush .hp file at the end of each sample ---------------------------------+------------------------------------------ Reporter: akio | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * status: new => patch * difficulty: => Unknown -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7693#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7693: Flush .hp file at the end of each sample
---------------------------------+------------------------------------------
Reporter: akio | Owner:
Type: feature request | Status: merge
Priority: normal | Milestone:
Component: Runtime System | Version: 7.7
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by ezyang):
* status: patch => merge
Comment:
Pushed.
{{{
commit b9d537317cb774abf832758e2be9c08db70b6d2c
Author: Takano Akio

#7693: Flush .hp file at the end of each sample ---------------------------------+------------------------------------------ Reporter: akio | Owner: Type: feature request | Status: merge Priority: normal | Milestone: 7.6.3 Component: Runtime System | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * milestone: => 7.6.3 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7693#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC