Questions tagged [diagnostics]

503 questions
10
votes
2 answers

Obviously ambiguous call does not cause a compilation error on GCC

I was surprised by the fact that GCC does not consider the call to foo() in the following program ambiguous: #include struct B1 { bool foo(bool) { return true; } }; struct B2 { bool foo(bool) { return false; } }; struct C : public B1,…
Andy Prowl
  • 124,023
  • 23
  • 387
  • 451
10
votes
2 answers

How to list pipes used by a process with a bash command

Is there a way to list pipes used by a running linux process (e.g. given its pid or process name) and to determine their used capacity? Something like: lspipes -l -p pid resulting in something like: [rw] descriptor size name where rw is the…
a1an
  • 3,526
  • 5
  • 37
  • 57
9
votes
1 answer

Azure: How to create the WADLogsTable for capturing diagnostics code?

I have a worker role that I would like to get diagnoistics feedback on... after adding the appropriate connection string to the ServiceConfiguration.cscfg and the following…
mytwocents
  • 847
  • 17
  • 29
9
votes
1 answer

Get a number of open sockets in C#?

I'm trying to log the number of open sockets in my C# server application. Like the info you could get from "netstat -s": TCP Statistics for IPv4 Active Opens = 22765 Passive Opens = 9316 I could…
Vincent
  • 3,191
  • 3
  • 29
  • 35
9
votes
3 answers

Get-Content and show control characters such as `r - visualize control characters in strings

What flag can we pass to Get-Content to display control characters such as \r\n or \n? What I am trying to do, is to determine whether the line endings of a file are in the Unix or Dos style. I have tried simply running Get-Content, which doesn't…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
9
votes
2 answers

Improving diagnostics with the help of static_assert

In template programming, static_assert helps programmers to check constraint(s) on template arguments and generate human readable error messages on violation of constraint(s). Consider this code, template void f(T) { …
Nawaz
  • 353,942
  • 115
  • 666
  • 851
8
votes
1 answer

System.Transactions source warnings when using Linq-2-Sql

I've enabled System.Transactions logging: -- my listeners here and see A LOT of…
UserControl
  • 14,766
  • 20
  • 100
  • 187
8
votes
2 answers

Azure SDK 2.9 diagnostics exceptions

I created a blank solution with a single Azure Worker Role. I enabled performance monitoring and diagnostics using the default settings. When I run the app (which runs successfully) I try to look in the local development Azure Storage tables for the…
8
votes
6 answers

Simple round robin (moving average) array in C#

As a diagnostic, I want to display the number of cycles per second in my app. (Think frames-per-second in a first-person-shooter.) But I don't want to display the most recent value, or the average since launch. What I want to calculate is the mean…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
8
votes
5 answers

IE7 and 8 Hangs Randomly on CSS Images

We have an ASP.NET 3.5 application that has been in production for over a year. Our last release was a couple of months ago. We use CSS for styling and application of background images to divs and such. The server is Windows 2003 with…
BJ Safdie
  • 3,399
  • 23
  • 23
8
votes
1 answer

Python : counting module imports?

I am a mid end python developer at an animation studio, and have been presented with a unique diagnostics request ; To assess what code gets used and what doesn't. Within the sprawling disorganized structure of Python modules importing modules : I…
jorxster
  • 217
  • 2
  • 11
7
votes
3 answers

what is considered average request processing time?

What is normal time range for request processing?
zsharp
  • 13,656
  • 29
  • 86
  • 152
7
votes
4 answers

Is it possible to ensure copy elision?

Copy elision is a neat optimization technique and in some cases relying on copy elision can actually be faster than passing around references "by hand". So, let's assume you have identified a critical code path where you rely on the fact that the…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
7
votes
0 answers

clr.Dll!MetaDataGetDispenser and higher than expected CPU usage

I have a Windows Service written in C# which is running on a customer's server and seems to be working fine without any problems, but the CPU usage for this process is often much higher than I would expect. It is never over 50%, but is still a lot…
sgmoore
  • 15,694
  • 5
  • 43
  • 67
7
votes
2 answers

Diagnosing problems on Angular4 server side rendering with Asp.net Core

We started our project with dotnet template for Angular with server side rendering (JavaScriptServices). We sometimes get timeouts on the server side rendering of Angular4 and there isn't much on the exception to help us diagnose the problem,…
pauloya
  • 2,535
  • 3
  • 30
  • 50
1 2
3
33 34