473,386 Members | 1,609 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,386 software developers and data experts.

How do you know that the gc runs

GG
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Apr 7 '08 #1
3 1087
GG wrote:
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.
I recommend CLR Profiler for that:
http://www.microsoft.com/downloads/d...6-862B40AA0CD0

If you really want to know exactly when a GC is happening and what kind of
GC it is, you'll have to write your own profiler
(http://msdn2.microsoft.com/library/cc300553). This requires writing
unmanaged code and is not exactly trivial. It's unlikely to be of more use
than the info CLR Profiler can give you.

--
J.
Apr 7 '08 #2
On Apr 7, 4:14*pm, GG <GGwrote:
Is there a way to know when the garbage collection runs? We would like
to see how an app performs and when various gc levels kick in.

Thanks

*** Sent via Developersdexhttp://www.developersdex.com***
Are you talking about a kind of event you can call from your code?
IF so I do not know of any way of doing that.

Externally you can use any of the profilers available.
Apr 7 '08 #3
GG
This is what I am looking for.
Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Apr 8 '08 #4

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

Similar topics

7
by: CoralineSage | last post by:
Hi there, I know very little about PHP, but I was just curious to know why exactly would some PHP code run fine from the command line but not from the browser? I'm just curious. I was working...
4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
0
by: Roger | last post by:
I've got this small vba code Public Sub sendmail() Dim osession As Object Set osession = CreateObject("MAPI.Session") osession.logon "npescan", "", False, True, 0, False ... read stuff......
2
by: ThurstonHowl | last post by:
Hello, my task is the following: Input are tables with fields containing strings where the strings are actually delimited lists. For example, one field could contain 'AB|CD|EF|GH' I've...
4
by: Alan Silver | last post by:
Hello, According to MS's web site, VS 2005 will be coming out "in the first half of 2005", which isn't very helpful. That could be anytime between tomorrow and the end of June. I am interested...
15
by: Pucca | last post by:
I'm getting an error when I tried to use this BerConverter class in my C# code. Even though the Interent doc says that it runs on Win2000 sp4, I just thgouth I'll double check. Does anyone know...
6
by: sethukr | last post by:
Hi everybody, While i'm compiling the following program in GCC, it gives "segmentation fault" But GDB doesn't give any "segmentation fault" What's the reason for this?? #include<stdio.h>...
0
by: juhisingh | last post by:
Hi All, I'm creating a windows service thats runs for every one hour. I want to use a variable in that service whose value increments for every one hour the service runs. Say first time when...
11
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.