Subject Re: [firebird-python] Problem with tracing and FDB
Author Harriv
I don't need main thread to be responsive, I want to read the data as soon as possible. It's possible to control the tracing from command line or another application, or I can use multiprocessing module to help.

How to do that? How to get data before trace has stopped?

It's probably possible to pipe the output of fbtracemgr to Python program, but I'm still interested how to do it with plain Python program.



On Thu, Oct 24, 2013 at 12:39 PM, Pavel Cisar <pcisar@...> wrote:


Dne 24.10.2013 10:40, Harriv napsal(a):
>
>
> How fbtracemgr.exe and FB TraceManager from Upscene handle displaying
> the trace log in real time?

It's no magic, they simply read data from service as you do, and display
it as it arrives. They do it in background thread, so main process is
always responsive and can end the trace session on your request (which
will also stop the background thread that was could be sleeping, waiting
in API call to engine). You can do the same in Python using FDB, but
it's much more code and more complicated than two-process solution
without threads.

best regards
Pavel Cisar
IBPhoenix



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-python/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-python/join
    (Yahoo! ID required)

<*> To change settings via email:
    firebird-python-digest@yahoogroups.com
    firebird-python-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    firebird-python-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://info.yahoo.com/legal/us/yahoo/utos/terms/