Feature #549

Provide a way to flush each measurement line

Added by Max Ott about 1 year ago. Updated about 1 month ago.

Status:Closed Start date:20/05/2011
Priority:Normal Due date:
Assignee:Olivier Mehani % Done:

100%

Category:-
Target version:2.7.0 Estimated time:1.00 hour

Description

I want to interactively plot some of the measurements, but when writing a measurement stream into a file or socket, Linux usually buffers them into (4k) chunks. A simple way to get around that is to issue a 'fflush' after each row.

The attached patch is a real hack, but it works for what I need to do early next week. The file_writer checks the supplied file name for a 'flush:' suffix and if found will issue the fflush.

I assume there is a cleaner way of doing it.

0001-added-support-for-an-optional-flush-file-prefix-to-i.patch (1.4 kB) Max Ott, 20/05/2011 03:14 pm

0001-Add-unchecked-function-to-write-mbuf-to-a-FILE.patch (1.6 kB) Olivier Mehani, 11/04/2012 05:37 pm

0002-Test-case-for-fflush-3-ed-file-stream.patch (8.6 kB) Olivier Mehani, 11/04/2012 05:37 pm

0003-Add-logic-to-change-buffering-strategy-for-file-stre.patch (3 kB) Olivier Mehani, 11/04/2012 05:37 pm

0001-Add-unchecked-function-to-write-mbuf-to-a-FILE.patch (1.6 kB) Olivier Mehani, 13/04/2012 04:06 pm

0002-Test-case-for-fflush-3-ed-file-stream.patch (8.6 kB) Olivier Mehani, 13/04/2012 04:06 pm

0003-Add-logic-to-change-buffering-strategy-for-file-stre.patch (3 kB) Olivier Mehani, 13/04/2012 04:06 pm

0004-Introduce-oml_uri_type-and-test-suite.patch (3.1 kB) Olivier Mehani, 13/04/2012 04:06 pm

0005-Implement-the-flush-scheme-for-the-file-URI.patch (5.8 kB) Olivier Mehani, 13/04/2012 04:06 pm

Associated revisions

Revision 58f2e530
Added by Olivier Mehani about 1 month ago

Test case for fflush(3)ed file stream.

refs: #549

Signed-off-by: Olivier Mehani <>

Revision 462d4f6f
Added by Olivier Mehani about 1 month ago

Add logic to change buffering strategy for file streams

refs: #549

Revision 103fbd10
Added by Olivier Mehani 28 days ago

Implement the flush:// scheme for the file URI

fixes: #549

Signed-off-by: Olivier Mehani <>

History

Updated by Thierry Rakotoarivelo 7 months ago

  • Tracker changed from Support to Feature
  • Target version set to 2.7.0

Updated by Olivier Mehani about 1 month ago

  • Estimated time set to 1.00

Updated by Olivier Mehani about 1 month ago

  • Status changed from New to Closed

Pushed to staging.

Also available in: Atom PDF