tagged [diagnostics]
Can Stopwatch be used in production code?
Can Stopwatch be used in production code? I need an accurate timer, and DateTime.Now seems not accurate enough. From the descriptions I read, System.Diagnostics.Stopwatch seems to be exactly what I wa...
- Modified
- 10 May at 18:30
How to keeps colours from msbuild output?
How to keeps colours from msbuild output? When I run msbuild at the command line it shows pretty colours in the console. However when I run it from C# with `Process.Start`, the output appears in black...
- Modified
- 22 Jul at 09:41
Measuring performance of ASP.NET MVC 3
Measuring performance of ASP.NET MVC 3 I've built a JSON service in ASP.NET MVC 3 and I want to be able to measure the execution time of the actions in my application (I want to it to automatically lo...
- Modified
- 28 Apr at 15:55
Format of Tracing output in System.Diagnostics.TraceSource
Format of Tracing output in System.Diagnostics.TraceSource The following code: g
- Modified
- 14 Apr at 18:51
Calling dism.exe from System.Diagnostics.Process Fails
Calling dism.exe from System.Diagnostics.Process Fails For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command ...
- Modified
- 20 Jun at 09:12
Getting from ProcessThread to a managed thread
Getting from ProcessThread to a managed thread Periodically we get a hang on shut down of a Windows service in a production environment that we just cannot reproduce. It can be months before it happen...
- Modified
- 25 Jun at 21:16
Process Memory Size - Different Counters
Process Memory Size - Different Counters I'm trying to find out how much memory my own .Net server process is using (for monitoring and logging purposes). I'm using: However, the Process object has se...
- Modified
- 26 Aug at 23:19
Get CPU and RAM usage
Get CPU and RAM usage I need to get the ram memory and CPU usage during execution of a process (the process can run sometimes and over 30 minutes). I am able to get the free RAM but the CPU usage it's...
- Modified
- 28 Oct at 09:42
log4net traceappender only logs messages with level 'verbose' when using Windows Azure DiagnosticsMonitor
log4net traceappender only logs messages with level 'verbose' when using Windows Azure DiagnosticsMonitor I have an azure worker role which I have configured to use a log4net Trace Appender which writ...
- Modified
- 3 Aug at 20:21
Logging from ASP.NET 5 application hosted as Azure Web App
Logging from ASP.NET 5 application hosted as Azure Web App I have an ASP.NET 5 Web API that I host in Azure as a Web App. I want to log messages from my code using Azure Diagnostics. There are multipl...
- Modified
- 19 Jan at 00:41
C#: Redirect Standard Output of a Process that is Already Running
C#: Redirect Standard Output of a Process that is Already Running I've been having a hard time getting the output of a "sub-process" (one launched internally by a blackbox process that I'm monitoring ...
- Modified
- 23 May at 11:59
Visual Studio 2015 diagnostic tools no longer working
Visual Studio 2015 diagnostic tools no longer working I have Visual Studio 2015 Community Edition Update 3 running on Windows 7 SP1 64 bit, which I use to develop C# applications. I love the diagnosti...
- Modified
- 23 May at 12:26
WCF logging, set max file size?
WCF logging, set max file size? Im using Microsoft Service Configuration Editor to setup diagnostics(WCF logging) and I can´t find any way to set the max file size? I have found the MaxSizeOfMessageTo...
- Modified
- 4 Oct at 15:53
How can I make my code diagnostic syntax node action work on closed files?
How can I make my code diagnostic syntax node action work on closed files? I'm building a set of code diagnostics using Roslyn (in VS2015 Preview). Ideally, I'd like any errors they produce to act as ...
- Modified
- 18 Feb at 05:18
How do I know when the last OutputDataReceived has arrived?
How do I know when the last OutputDataReceived has arrived? I have a System.Diagnostics.Process object in a program targeted at the .Net framework 3.5 I have redirected both `StandardOutput` and `Stan...
- Modified
- 2 Nov at 18:23
Couldn't find type for class Microsoft.WindowsAzure.Diagnostics
Couldn't find type for class Microsoft.WindowsAzure.Diagnostics Just got back from holidays, and went in to make a couple small changes in our app, when I was confronted by this error: > Couldn't find...
- Modified
- 30 Sep at 04:24
Why is this process crashing as soon as it is launched?
Why is this process crashing as soon as it is launched? We have an IIS WCF service that launches another process (app.exe) as a different user. I have complete control over both applications (and this...
- Modified
- 20 Jun at 09:12
Is CorrelationManager.LogicalOperationStack compatible with Parallel.For, Tasks, Threads, etc
Is CorrelationManager.LogicalOperationStack compatible with Parallel.For, Tasks, Threads, etc Please see this question for background information: [How do Tasks in the Task Parallel Library affect Act...
- Modified
- 23 May at 12:34