trace

How can i open .trace file format(traceview) without DDMS?

荒凉一梦 提交于 2019-12-03 02:51:19
I want to save a log of method calls. Traceview supports that function and I can get .trace file format. but, I need to open .trace file format without DDMS. If I can't open .trace file without DDMS, How can I get a log of method calls? (The best is .txt file format.) thanks. ravenzhang It is an old thread. because I found here, so other guys may need this, too. Try this: traceview -r yourtrace.trace > 1.txt and look 1.txt has any useful thing to u. "traceview" is a command-line utility. You don't need to launch it from DDMS. If you just want a text file with times and message names, you can

ASP.NET Web API Logging and Tracing

ε祈祈猫儿з 提交于 2019-12-03 02:51:10
Once one has a logging and tracing setup using log4net in place for ASP.NET Web API, what are the specific aspects that need to be logged and/or traced? I am asking this specifically from Web API perspective. Is there a series of MUST Log this or MUST trace this . Like, INFO traces about a controller's request, any NULL checks, etc. Is there a reference list that can be validated against to ensure optimum logging and tracing coverage in ASP.NET Web API ? So I will assume your goal for the logging is, as it should be, to debug the application rather than measure for performance. While I think

ASP.NET MVC Tracing Issues

自闭症网瘾萝莉.ら 提交于 2019-12-03 01:33:18
Question How do I get ASP.NET MVC trace information to be consistent for in-page trace output as trace.axd? I may just be missing something obvious, please call it out if you see it. Background Info for Traditional ASP.NET So back in the regular ASP.NET days, you could simply add the following to your web.config: <system.diagnostics> <trace> <listeners> <add name="WebPageTraceListener" type="System.Web.WebPageTraceListener, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </listeners> </trace> </system.diagnostics> ... <system.web> <trace enabled="true"

Trace where code is coming from (PHP)

丶灬走出姿态 提交于 2019-12-03 00:43:25
I'm going through a customer's server, running crazy proprietary forum software (vBulletin) and even worse SEO mods (vbseo). I cannot figure out where the php code for a page is coming from! How to trace this URL back to a PHP page: http://www.example.com/forum/members/connie.html I just joined a project with the code based on a heavily modified vBullitin install with the VBSEO plugin. This particular plugin is horrific spaghetti code with tens of include()s, .htaccess redirects and possibly .httpd.conf changes. Then it pulls strings from a database so I cannot even use grep to find the code

How to trace per-file IO operations in Linux?

流过昼夜 提交于 2019-12-02 22:22:28
I need to track read system calls for specific files, and I'm currently doing this by parsing the output of strace . Since read operates on file descriptors I have to keep track of the current mapping between fd and path . Additionally, seek has to be monitored to keep the current position up-to-date in the trace. Is there a better way to get per-application, per-file-path IO traces in Linux? First, you probably don't need to keep track because mapping between fd and path is available in /proc/PID/fd/ . Second, maybe you should use the LD_PRELOAD trick and overload in C open , seek and read

Consuming “Event Tracing for Windows” events

五迷三道 提交于 2019-12-02 17:47:21
An answer to this question has led me to look into using "Event Tracing for Windows" for our tracing needs. I have come across NTrace , which seems to be a good way to produce ETW events from C# code (using the XP-compatible "classic provider" model). However, I am unable to find an easy way to consume these events - to see them in real-time and/or log them to a file. The only way I have found is that described in the NTrace documentation: using a tool which is only available as part of the Windows DDK. In the case of a complex problem in the field, we may need to ask the user to produce a

When tracing out variables in the console, How to create a new line?

柔情痞子 提交于 2019-12-02 14:34:23
So I'm trying to do something simple, I want to break up my traces in the console into several lines, using 1 console.log statement: console.log('roleName = '+roleName+' role_ID = '+role_ID+' modal_ID = '+modal_ID+\n+'related = '+related); How would you write the above to trace out the following? roleName = test role_ID = test modal_UD = test related = test instead of roleName = test role_ID = test modal_UD = test related = test I've checked out several other questions which appear similar, but none have helped or are talking about a different thing. Thanks for taking a look! You should

Tracing ODBC calls for Informix Client for Linux

痞子三分冷 提交于 2019-12-02 13:25:03
问题 I tried to trace ODBC function calls from my program working on Linux. This program dynamically links ODBC manager and then connect to database and fetch some data. I can trace ODBC calls with unixODBC by adding to odbcinst.ini: [ODBC] Trace=yes TraceFile=/tmp/sql.log This method is documented by IBM: Collecting data for an ODBC Problem But when I change manager from unixODBC to Informix's own manager (libifdmr.so), the trace file is not created. Anybody successfully obtained ODBC trace from

c++ function addresses coming out different in attached profiler library than in the subject code base

耗尽温柔 提交于 2019-12-02 13:25:02
问题 I have written an instrument-er in C++ to log entry and exit functions by hooking on enter and exit calls. It is working as supposed to with a legacy code base. However on hooking with a project that I downloaded from git, function addresses that I save in an extern variable in the subject code, they are coming out different in the profiler library. That is messing up the function pointer comparison between hooked and saved functions. Function address in subject code main file, breakpoint is

Log all function invocations to console

萝らか妹 提交于 2019-12-02 12:34:58
问题 It occurs pretty often that I start debugging a class by logging every function call to console and looking for differences in the bugged cases. Is there some attribute that I can apply to a class to enable such a tracing? It's pretty exhausting to have to enter these Console.WriteLine("classname: methodname") to every method and to remove them afterwards (removing can be done by conditional compilation, but it is not very nice to look at the code when you have all this redundance) 回答1: There