473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

.Net Profiler

Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is
free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object
has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't provide
nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.
Nov 15 '05 #1
9 3253
If you have to build a profiler customize for your application
you can start from this link to the SSCLI profiler core source
code.

http://www.slink-software.com/W/SrcD...scli.sdoc/N_36

It is not a bad place to start understand the CLI profiler hooks and
its potential too.

sscli.sdoc
BuildInfo
Source Code Roadmap:
App Domain
Marshaler
Profiler
ProfToEEInterface - proftoeeinterfaceimpl.h:34
CorProfInfo - profile.h:64
ICorProfilerInfo - corprof.h:1889
CProfilerCallback - profilercallback.h:9
ObjectsAllocatedByClass - profilercallback.cpp:545

"Franco Gustavo" <gf*****@inuntius.com> wrote in message news:<Ov**************@TK2MSFTNGP12.phx.gbl>...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is
free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object
has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't provide
nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.

Nov 15 '05 #2
Hi,

Our .NET Memory Profiler gives you information about the callstack of all
allocations, it also tells you which root references are keeping an instance
from being garbage collected. I think it will help you solve your problem. A
trial version can be downloaded at: http://www.scitech.se/memprofiler

Best regards,

Andreas Suurkuusk
SciTech Software AB
"Franco Gustavo" <gf*****@inuntius.com> skrev i meddelandet
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is
free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object
has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't provide
nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to do that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.

Nov 15 '05 #3
For what it's worth, I've used Ants and really like it. It's easy to use
and packed with useful information.
http://www.red-gate.com/code_profiling.htm
"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is
free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object
has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't provide
nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to do that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.

Nov 15 '05 #4
Thanks for your answers.
Gustavo.

"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is
free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object
has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't provide
nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to do that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.

Nov 15 '05 #5
Hi, I tried your profiler but it only show the call stack who created the
object, it doesn't show any information about the delegates associated to
this object, so I dispose and make the object = null but the object is never
collected and you don't know which reference still are made to this object.

Anyway thanks, I'll keep searching
Gustavo.

"Andreas Suurkuusk" <an*****@onlinescitech.se> wrote in message
news:O9*************@TK2MSFTNGP10.phx.gbl...
Hi,

Our .NET Memory Profiler gives you information about the callstack of all
allocations, it also tells you which root references are keeping an instance from being garbage collected. I think it will help you solve your problem. A trial version can be downloaded at: http://www.scitech.se/memprofiler

Best regards,

Andreas Suurkuusk
SciTech Software AB
"Franco Gustavo" <gf*****@inuntius.com> skrev i meddelandet
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't

provide nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to

do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.


Nov 15 '05 #6
Very nice tool to test performance, I think I'll buy it for performance
issues, but it is not useful for debugging proposes, it doesn't show
anything about references from delegates.

Thanks,

Gustavo.

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
For what it's worth, I've used Ants and really like it. It's easy to use
and packed with useful information.
http://www.red-gate.com/code_profiling.htm
"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't

provide nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to

do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.


Nov 15 '05 #7
Hi,

I don't quite understand what information you want. In the current version
we only present the referees of an instance (i.e. other instances that have
references to the selected instance). We do not present the references from
the selected instance (in the upcoming version we present the outgoing
references as well). But if you have an instance that is never collected,
it's only the referees that are responsible for the instance not being
collected. No matter how many other instances the selected instance refers
to, it will not affect garbage collection of this instance (it will however
affect the garbage collection of the instances it references).

The root paths presented for each instance is directly telling you why an
instance has not been collected. If there is at least one root path, then
the instance is reachable and cannot be collected.

Just for your information, there's no need to keep a reference to the event
handler in the event consumer class, since delegates use an equality
comparison (on the method and instance) when removing a delegate (though,
there can be a very small performance gain in keeping a reference to the
event handler).

If you need any additional information, please ask.

Best regards,

Andreas Suurkuusk
SciTech Software AB

"Franco Gustavo" <gf*****@inuntius.com> skrev i meddelandet
news:OV*************@TK2MSFTNGP10.phx.gbl...
Hi, I tried your profiler but it only show the call stack who created the
object, it doesn't show any information about the delegates associated to
this object, so I dispose and make the object = null but the object is never collected and you don't know which reference still are made to this object.
Anyway thanks, I'll keep searching
Gustavo.

"Andreas Suurkuusk" <an*****@onlinescitech.se> wrote in message
news:O9*************@TK2MSFTNGP10.phx.gbl...
Hi,

Our .NET Memory Profiler gives you information about the callstack of all
allocations, it also tells you which root references are keeping an instance
from being garbage collected. I think it will help you solve your problem. A
trial version can be downloaded at: http://www.scitech.se/memprofiler

Best regards,

Andreas Suurkuusk
SciTech Software AB
"Franco Gustavo" <gf*****@inuntius.com> skrev i meddelandet
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times
I have many EventHandlers associated to an object, then this object never
is free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in
my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't

provide nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me

who create the references to the EventHandlers? if there are not profiler

to do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.



Nov 15 '05 #8
Have u checked this??

"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Thanks for your answers.
Gustavo.

"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't

provide nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to

do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.


Nov 15 '05 #9
Have u checked this??

http://msdn.microsoft.com/library/de...anagedcode.asp

Regards.
NetPointer

"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Thanks for your answers.
Gustavo.

"Franco Gustavo" <gf*****@inuntius.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
Hi, All

What's is the best .net profiler for Debug an application. I have to buy one
but I don't know which one!!
I tried some of them like Borland and AQTime.

My big problem is, my application is a big application, and many times I
have many EventHandlers associated to an object, then this object never is free from the memory.
AQTime for .Net can tell me how many references of EventHandler the object has. But it can't tell me who create this reference.

So for fix it is a pain in the a... because I have to see line by line in my
code to may be know who can create this reference.

Borland so far is not usefull for nothing... Expensive and doesn't

provide nothing for debug, just to see the application performace that's it

Then the question is, there are some .Net profiler that can tell me who
create the references to the EventHandlers? if there are not profiler to

do
that. How can I fix it with out look line by line in my code.

Thanks,
Gustavo.


Nov 15 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jeff Mair | last post by:
Hello all, I haven't been using profiler for a terribly long time, and I've come across something that I just can't figure out. I'm running MS Virtual PC to run a Win2K Server OS with SQL...
8
by: patrickshroads | last post by:
I am running a profiler trace against a database and noticed that the reads column always shows 0. When running the same trace against another machine I get back values in the reads column. I took...
3
by: Maansi Gupta | last post by:
Platform - Windows 2000 Professional , VC .NET 7.1 Hello, I have recently ported my source code from Visual Studio 6.0 to .NET 7.1 Previously with Visual Studio 6.0 I was using the profiler...
9
by: Franco Gustavo | last post by:
Hi, All What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!! I tried some of them like Borland and AQTime. My big problem is, my...
8
by: Bryan | last post by:
Does anyone have an example of an application that can connect to a running process and capture Trace.WriteLine calls like in SQL Server Profiler? I know that we can inherit from a TraceListener...
1
by: ofirmgr | last post by:
im trying to understand how the profiler works. so i started 2 profilers,one listen to another and I saw the profiler is running: exec sp_trace_create @P1 output, 1, NULL, NULL, NULL which means...
3
by: Sam Samson | last post by:
Can any-one recommend some good sites detailing how to code a simple memory profiler? How do they "look under the hood"? I built an uber simple service that tracks the process' memory but I need...
2
by: Paul Ritchie | last post by:
A few years ago I used a Profiler (I forget the name) on my Delphi code at the time and got fantastic results showing both: a) lines of code that took the longest to execute and b) lines of code...
0
by: anweshadash | last post by:
Using SQL Profiler: (Ref: http://msdn2.microsoft.com/en-us/library/ms181091.aspx) Sometimes it’s very beneficial to use sql profiler. Let’s have an idea about that and how to use that by...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.