Questions tagged [diagnostics]
503 questions
4
votes
1 answer
what are this tables created by diagnostics?
Azure Diagnostic creates many tables, apparently containing the same performance counters but for different days. Why does it create so many tables, and how can I delete them?

Ryan
- 5,456
- 25
- 71
- 129
4
votes
2 answers
How can I create an event source without elevating privileges?
I'm working on a C# program that will be used as a logon script. For diagnostic purposes, I would like to be able to write to the Application log. Unfortunately, all of the documentation that I've found states that it's impossible to create an event…

bshacklett
- 1,802
- 5
- 23
- 45
4
votes
2 answers
Azure Trace Logs working on Emulator but not working on the cloud
I have a TraceManager class that basically calls the TraceEvent method from the System.Diagnostics.TraceSource class.
TraceSource source = new TraceSource("MyTraceSource");
void TraceInternal(TraceEventType eventType, string message)
{
if…

Paco
- 41
- 2
3
votes
1 answer
Where should I put a project- or application-wide TraceSwitch in my design?
I'm trying to enhance my program with some logging functionality provided by System.Diagnostics. As my Solution consists of several projects, I wanted to create a switch for the whole application and one for every project.
Now the question is, how…

Michael Klement
- 3,376
- 3
- 30
- 34
3
votes
3 answers
Why do some lines in my GC log show only one value for the heap size?
Most lines in my GC log look like this:
203.558: [GC 326391K->324672K(4192192K), 0.0452610 secs]
The size in parentheses is the "commited heap", or (approximately) the size of the process as seen by the OS. The two numbers before that ("a->b")…

Hanno Fietz
- 30,799
- 47
- 148
- 234
3
votes
1 answer
Understanding heartbeat in ASP.NET health monitoring
Who's triggering the event? What are consequences/benefits of enabling it in except it appears every 30 seconds in the logs? Has it anything to do with NLB heartbeat? What interval is better…

UserControl
- 14,766
- 20
- 100
- 187
3
votes
4 answers
Async TCP System.Net.Socket send (Begin/End Send) not actually sending anything
Background:
I am running a TCP server on one machine with multiple clients on separate machines connecting over TCP, and I am monitoring network traffic with Wireshark, as well as with logging from within my server application, and through the…

Aron
- 372
- 5
- 18
3
votes
2 answers
How Can I see my Diagnostics Trace of my Azure Worker Role?
I have a doubt with Azure Trace Logs.
I have a Worker Role and I want to log certain events,
When we deploy the application locally we can read the Trace using Cerebrata Cerebrata Cloud Storage.
But when we deploy to staying or production we can't.…

Martin N. Rabaglia
- 31
- 1
- 3
3
votes
3 answers
Catching exceptions thrown without try/catch
I recall reading about how exceptions could be caught without the use of try/catch. Basically when an exception is thrown such as "Unhandled exception" via derefencing a null pointer, there would be a process that is triggered even when a try/catch…

judeclarke
- 1,106
- 5
- 16
- 31
3
votes
2 answers
How is Valgrind able to access line number of memory allocation in compiled C program, how I can I do the same?
When I run a simple Valgrind command, such as...
valgrind --leak-check=yes ./my_program
...the error output Valgrind produces shows where in the source code a memory allocation was made and where it was freed. How is Valgrind able to do this? How I…

Theo d'Or
- 783
- 1
- 4
- 17
3
votes
3 answers
Diagnosing CUDA Kernel problems
CUDA has lots of documentation and guides all over the place, but one I haven't been able to find has been any form of instruction in how to diagnose kernels that compile but get cryptic, vague error messages such as 'unspecified launch failure'…

Bolster
- 7,460
- 13
- 61
- 96
3
votes
4 answers
GCC's two unusual error messages
Today, I came across two error messages which I never seen before. It's completely new to me.
Here is the code:
template
struct adder { adder(const T &item) { } };
template
void initializer(const T &item) { adder(item);…

Nawaz
- 353,942
- 115
- 666
- 851
3
votes
1 answer
Determining whether MATLAB fitglm() model fit converged
There are many MATLAB functions that do some kind of statistical model fitting, such as fitglm(). These model fits can fail to converge for various reasons; this question is NOT about what can cause such failures or about how to prevent them.
My…

Matt Mizumi
- 1,193
- 1
- 11
- 27
3
votes
1 answer
Why different diagnostics by clang on similar issue?
Here is my code:
#include
int main()
{
std::vector a = {1, 2.2};
}
As expected this does not compile because of the illegal narrowing conversion:
$ clang++ -std=c++11 foo.cpp
foo.cpp:5:30: error: type 'double' cannot be narrowed…

Lone Learner
- 18,088
- 20
- 102
- 200
3
votes
2 answers
DEM debounce mechanism
In the Autosar DEM module, there are two debounce mechanisms : Counter based and timer based.Which mechanism is a good one? How to decide, what mechanism needs to be applied for a given event?

xyz101
- 149
- 1
- 5