472,976 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,976 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 1082
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.