Hello, Also, I’ve noticed that FDR mode doesn’t flush to a log unless programmatically configured to do so unlike basic mode, which flushes by default. Would it be possible to add this feature as well? Thanks, Henry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180611/295c3dba/attachment.html>
Dean Michael Berris via llvm-dev
2018-Jun-12 00:27 UTC
[llvm-dev] XRay feature – fdr log flushing
> On 12 Jun 2018, at 07:50, Henry Zhu via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello, > > > Also, I’ve noticed that FDR mode doesn’t flush to a log unless programmatically configured to do so unlike basic mode, which flushes by default. Would it be possible to add this feature as well? >FDR mode is specifically implemented so that the log is only flushed on-demand. Can you describe the use-case for “default flushing” a little bit more? Adding an “exit handler” that will flush the currently installed XRay mode is tricky, but not impossible. It’s definitely something worth exploring more. Cheers -- Dean
I might have been unclear with the term default flushing. Basic mode produces a log without being programmatically configured to do so. (Writing to a log can be enabled by configuring the environment variable). On Mon, Jun 11, 2018 at 8:27 PM, Dean Michael Berris <dean.berris at gmail.com> wrote:> > > > On 12 Jun 2018, at 07:50, Henry Zhu via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > Hello, > > > > > > Also, I’ve noticed that FDR mode doesn’t flush to a log unless > programmatically configured to do so unlike basic mode, which flushes by > default. Would it be possible to add this feature as well? > > > > FDR mode is specifically implemented so that the log is only flushed > on-demand. Can you describe the use-case for “default flushing” a little > bit more? > > Adding an “exit handler” that will flush the currently installed XRay mode > is tricky, but not impossible. It’s definitely something worth exploring > more. > > Cheers > > -- Dean > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180625/ae9afe13/attachment.html>