473,748 Members | 8,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 3278
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
ProfToEEInterfa ce - proftoeeinterfa ceimpl.h:34
CorProfInfo - profile.h:64
ICorProfilerInf o - corprof.h:1889
CProfilerCallba ck - profilercallbac k.h:9
ObjectsAllocate dByClass - profilercallbac k.cpp:545

"Franco Gustavo" <gf*****@inunti us.com> wrote in message news:<Ov******* *******@TK2MSFT NGP12.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*****@inunti us.com> skrev i meddelandet
news:Ov******** ******@TK2MSFTN GP12.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*****@inunti us.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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*****@inunti us.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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*****@online scitech.se> wrote in message
news:O9******** *****@TK2MSFTNG P10.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*****@inunti us.com> skrev i meddelandet
news:Ov******** ******@TK2MSFTN GP12.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********@nos pam.comcast.net > wrote in message
news:Ov******** ******@TK2MSFTN GP10.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*****@inunti us.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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*****@inunti us.com> skrev i meddelandet
news:OV******** *****@TK2MSFTNG P10.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*****@online scitech.se> wrote in message
news:O9******** *****@TK2MSFTNG P10.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*****@inunti us.com> skrev i meddelandet
news:Ov******** ******@TK2MSFTN GP12.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*****@inunti us.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Thanks for your answers.
Gustavo.

"Franco Gustavo" <gf*****@inunti us.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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*****@inunti us.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Thanks for your answers.
Gustavo.

"Franco Gustavo" <gf*****@inunti us.com> wrote in message
news:Ov******** ******@TK2MSFTN GP12.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
1887
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 Server 2000 (sp3 i think). Whenever I start up SQL Profiler - even immediately after a bootup, if I try to pause, stop, or exit out of profiler, it hangs. The strange part is that it seems to keep on tracing even though it won't respond anymore. I...
8
2836
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 a query that profiler reported as having 0 reads and ran in in query analyzer wtih STATISTICS IO on and confirmed that there are in fact reads: Table 'tt_cawardalloc'. Scan count 1, logical reads 8, physical reads 0, read-ahead reads 1. Table...
3
1692
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 in the following way 1) Build the project with link setting- Enable Profiling as checked. 2) I had created a custom batch file for profiling my application and was
9
1393
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 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
8
2147
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 class to write to files, databases, etc..., but I would really like to attach to running .NET processes and get the results without any logging and instead capture the real-time results when troubleshooting.
1
3177
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 @tracefile = NULL so where from the profiler read the results?!
3
3684
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 to "get inside" and look a bit deeper and I don't have a clue where to start ... a commercial memory profiler is not an option due the nature of the environment the application is deployed in .. My app runs fine for weeks (in 8 locations) but...
2
2344
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 that allocated the most unreleased memory. I have looked around and am unable to find a good tool to easily achieve these statistics for my C# Winforms application. Possible reasons are that: 1) I am having difficulty finding the existing...
0
5055
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 taking some scenarios. Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the SQL Server Database Engine or Analysis Services. You can capture and save data about each event to a file or table to...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.