trace

QEMU simple backend tracing dosen't print anything

你说的曾经没有我的故事 提交于 2019-12-07 14:02:51
问题 I'm doing get simple trace file from QEMU. I followed instructions docs/tracing.txt with this command "qemu-system-x86_64 -m 2G -trace events=/tmp/events ../qemu/test.img" i'd like to get just simple trace file. i've got trace-pid file, however, it dosen't have anything in it. Build with the 'simple' trace backend: ./configure --enable-trace-backends=simple make Create a file with the events you want to trace: echo bdrv_aio_readv > /tmp/events echo bdrv_aio_writev >> /tmp/events Run the

WCF tracing of ONLY failed requests?

喜欢而已 提交于 2019-12-07 11:37:16
问题 I want to save trace information into .svclog files but only for failed requests. Is this possible? If so, how precisely? I have a WCF service that's called hundreds of times per minute. On rare occasions clients will get an error 500 that occurs outside of the boundaries of my code running inside WCF (usually security issues). I'd like to know exactly why those errors are happening and what's causing them. I would also really like to use the Trace Viewer tool to examine the .svclog files. As

How can I get a trace ID from OpenTracing API?

て烟熏妆下的殇ゞ 提交于 2019-12-07 08:13:37
问题 In #105 davidB asks: I would like to have read access to the Span id (SpanContext id) to be able to use it in log and in error reported (to end user,...). [skip] I need to expose the "trace id" in error message, then dev could use the trace to debug error reported by support, QA, end-user. 回答1: At the moment the OpenTracing API does not expose trace ID. It is being discussed in this issue: https://github.com/opentracing/specification/issues/24 回答2: One thing you can do right now is to call

TextWriterTraceListener does not work

浪子不回头ぞ 提交于 2019-12-07 07:47:46
问题 Config file: <system.diagnostics> <trace> <listeners> <add name="Console" type="System.Diagnostics.ConsoleTraceListener" initializeData="false"></add> <add name="Text" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\uat\logs\bifit.log" traceOutputOptions="DateTime"></add> </listeners> </trace> </system.diagnostics> The code: static void Main(string[] args) { try { Trace.WriteLine("Running BiFit Test Server."); } } I can see the text in cosole window. And the file is

How can I see the last SQL statement executed in Oracle database 11g r2?

我只是一个虾纸丫 提交于 2019-12-07 03:35:48
问题 I am new to oracle database. Can someone give me an example of the steps for how to see the last statements executed on the Oracle database 11g r2? 回答1: You can use the below query to get the last sql executed based on last sql which was active in database select ltrim(sq.sql_text) from v$sql sq, v$session se, v$open_cursor oc where sq.sql_id = oc.sql_id and se.saddr = oc.saddr and se.sid = oc.sid and se.audsid = SYS_CONTEXT('userenv', 'sessionid') order by oc.LAST_SQL_ACTIVE_TIME desc; 回答2:

IIS Failed Request Tracing - Performance View - doesn't show time spent

被刻印的时光 ゝ 提交于 2019-12-07 03:20:59
问题 I'm trying to troubleshoot slows requests on a website so I have configured Failed Request Tracing to trigger for requests taking 10 seconds or more. I'm getting logs but though they take 10+ seconds the performance view tab doesn't show where the time is spent. Why is that? 回答1: I have the same problem and it seems that IIS Time Taken logs are saved only up-to point when the request exceeds threshold. When I set up tracing based on status code, it will always log all events in .xml file. Try

How can I get T-SQL PRINT statements to come up in SQL Server Profiler Traces?

若如初见. 提交于 2019-12-07 02:15:00
问题 I'm not very experienced with SQL Server Profiler (2005, 2008). I'd like to print some info to a trace from a stored procedure. PRINT statements don't seem to output to my trace. How can I easily get the PRINT statements to output to the trace? If that's not what trace (or PRINT) is really meant for, what's a quick easy alternative? 回答1: You could use sp_trace_generateevent to "fire" an event out to your SQL trace. There's an example of it on the BOL page for the proc: http://msdn.microsoft

Is it possible to track a PostMessage between processes?

女生的网名这么多〃 提交于 2019-12-07 01:47:05
问题 We have a system where there are typically two processes running on the same system. One process handles the GUI and the other runs like a service (although for historical reasons, it's not a service, just an exe with no visible window). The two processes undertake IPC mainly via registered messages asynchronously - i.e. we use RegisterWindowMessage() in both processes to define a large'ish set of messages that effectively form the API to the server process. I have written a "hands-free"

Android trace file created but zero bytes long

只谈情不闲聊 提交于 2019-12-07 01:26:39
问题 I am trying to follow the instructions on this page to create a trace file. I can see the file in File Explorer in DDMS and can pull it onto my PC but it is zero bytes long. Any suggestions as to what I might be doing wrong, please? 回答1: The problem seems to have been that the stopMethodTracing() call which I had put in the onDestroy() method (as suggested in the Dev Guide) failed to stop the tracing even though I had tried three different means of ending the activity ... rotating the screen,

Tracing stdout and stderr in Tcl

放肆的年华 提交于 2019-12-06 20:54:29
I'm not sure if this absurd. Isn't it possible to trace the read and write of stdout and stderr in Tcl? I have tried the below and found no clue. % proc tracer {varname args} { upvar #0 $varname var puts "$varname value : $var" } % trace add variable stdout read tracer % trace add variable stdout write tracer % puts stdout hai hai % puts hai hai % trace add variable stderr write tracer % trace add variable stderr read tracer % puts hai hai % puts stderr hai hai As per the man page of puts , if no channelId is specified for puts command, then it defaults to stdout which means even with puts hai