Re: ETW trace question



"SB" <shawnberg@xxxxxxxxx> wrote in message news:539c8046-47c7-4ab3-8a82-bbfbabb90d4b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm using ETW inside my application...i need a way to flush the data
in the log to disk periodically.

Then... try ControlTrace(EVENT_TRACE_CONTROL_FLUSH)
In case of crash, try to set up some sort of exeption handler -
SEH or vectored - and call flush from there.

--pa



On Jul 23, 12:15 pm, "Pavel A." <pave...@xxxxxxxxxxxxxxx> wrote:
sb wrote:
> If my user app crashes when logging to a ETW tracing session my log
> file does not contain any data. In fact, the log file is never written
> until the trace session is stopped. I would like to know how I can
> force trace info to be written to the log file without stopping the
> trace.

How about tracelog -flush

--pa

.



Relevant Pages

  • ETW trace question
    ... If my user app crashes when logging to a ETW tracing session my log ... the log file is never written ... until the trace session is stopped. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Possible to change name of trace.axd in web.config file?
    ... must make sure that the new extension maps to an extension that ASP.NET ... > easier to simply write to your application's own log file for users to ... I'm writing an application that is writing trace information ... >> links are actually to the trace.axd webpage instead of using the name I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Possible to change name of trace.axd in web.config file?
    ... > easier to simply write to your application's own log file for users to ... I'm writing an application that is writing trace information ... >> links are actually to the trace.axd webpage instead of using the name I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Possible to change name of trace.axd in web.config file?
    ... > easier to simply write to your application's own log file for users to ... I'm writing an application that is writing trace information ... >> links are actually to the trace.axd webpage instead of using the name I ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: What tuning can be done on disk writes?
    ... Enable a 10046 trace before you run this script again. ... This will tell you whether your waits are for 'log file parallel write' ... SQL> alter sesssion set event '10046 trace name context forver, ...
    (comp.databases.oracle.server)

Loading