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

ASP.NET Profiling

Hello,

In the VS.NET documentation

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/cpguide/html/cpconenablingprofiling.asp

it says that in order to profile an application you have
to have its CLSID. I am new to profiling and looking to
profile my ASP.NET application, but don't know how to
find its CLSID. Also, it says that "The profiler must
implement the ICorProfilerCallback" Does this mean I
have to develop my own program to do the profiling? I
thought VS.NET would have a built in profiler that would
log each time a function is entered or exited. Any help
would be appreciated! Thanks!
Nov 17 '05 #1
3 2022
Hello Mark,

Thanks for your post. I'd like to share the following information with you:

1. The COR_PROFILER refers to either the GUID of Profiler object or its
ProgID, which implements the interface ICorProfilerCallback. There are
several examples of the profilers:

The .NET Profiling API and the DNProfiler Tool
http://msdn.microsoft.com/msdnmag/is...d/default.aspx

Hot Spot Profiler
<Program Files>\Microsoft Visual Studio .NET\FrameworkSDK\Tool Developers
Guide\Samples\profiler\gcp_profiler

General Purpose
<Program Files>\Microsoft Visual Studio .NET\FrameworkSDK\Tool Developers
Guide\Samples\profiler\hst_profiler

2. If you try to profile a web application, you will need to inject the
environment variables into the aspnet_wp. I recommend you the following
thread which discusses this issue:

http://groups.google.com/groups?hl=e...readm=098d01c2
ecb1%246477bb10%24a601280a%40phx.gbl&rnum=3&prev=/groups%3Fq%3DCor_Profiler%
26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D098d01c2ecb1%25246477bb
10%2524a601280a%2540phx.gbl%26rnum%3D3

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ˇ°as isˇ± with no warranties and confers no rights.

Nov 17 '05 #2
Huang,

Thank you for the articles. They were great, but
they were just slightly over my head. I have some
background in C++ but I am by no means an expert and I
don't know about programming COM, MFC, ATL, etc. in C++.
So I have two questions:

1) Is it possible to develop a profiler using C#? I
could try to modify the samples you linked to, but I'm
not sure how well that would go.

2) The google thread you referenced is great, but at one
point Andre says

You can use the attached program to find out the SID of
ASPNET account. Here is how to call it:
qlookup -name aspnet

But of course there is no attached file. Do you know
what program he was attaching? Or what other program
could I use to find the SID (I'm on WinXP Pro)?

Also, I am not sure about Andre's third step. I am not
sure what profiling variables to add. Sorry about being
such a newbie. I really appreciate all of your help!
Thanks so much!
-----Original Message-----
Hello Mark,

Thanks for your post. I'd like to share the following information with you:
1. The COR_PROFILER refers to either the GUID of Profiler object or its ProgID, which implements the interface ICorProfilerCallback. There are several examples of the profilers:

The .NET Profiling API and the DNProfiler Tool
http://msdn.microsoft.com/msdnmag/is.../12/Hood/defau lt.aspx
Hot Spot Profiler
<Program Files>\Microsoft Visual Studio .NET\FrameworkSDK\Tool Developers Guide\Samples\profiler\gcp_profiler

General Purpose
<Program Files>\Microsoft Visual Studio .NET\FrameworkSDK\Tool Developers Guide\Samples\profiler\hst_profiler

2. If you try to profile a web application, you will need to inject the environment variables into the aspnet_wp. I recommend you the following thread which discusses this issue:

http://groups.google.com/groups?hl=en&lr=&ie=UTF- 8&oe=UTF-8&threadm=098d01c2ecb1%246477bb10%24a601280a%40phx.gbl&rnum=3&pre v=/groups% 3Fq%3DCor_Profiler%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm% 3D098d01c2ecb1%25246477bb10%2524a601280a%2540phx.gbl%26rnum%3D3

Please feel free to let me know if you have any problems or concerns.
Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ˇ°as isˇ± with no warranties and confers no rights.
.

Nov 17 '05 #3
What about using commercial profilers like Ants
(http://www.red-gate.com/dotnet/ANTS_Profiler_facts.htm).

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

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

Similar topics

2
by: James Sleeman | last post by:
Hi all, I'm trying to find a performance problem I've got in a reasonably large system I'm writing. Anyway, I've had a look around at the offerings for profiling php requests... xdebug :...
0
by: Irmen de Jong | last post by:
Okay I tried some profiling, but am uncertain about the results I'm getting. They confuse the hell out of me. I have a test program (see below) that essentially has two loops that get called...
3
by: Richard Wallace | last post by:
Hello all, I'm looking for some input on the best tools to use for profiling multithreaded C++ code developed on GNU/Linux and compiled using gcc-3.1. More specifically, the distro in use is RH...
6
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to...
13
by: Jens Theisen | last post by:
Hello, I want to apologise in advance for this being off topic. It's not neither A C nor a C++ question, but to profiling in general, though I my chances are best to find the answer in the C/C++...
0
by: EdgarSanchez | last post by:
Hello Group, This mail is intended to announce the release of the newest version of SpeedTrace .NET Tracing & Profiling tool, SpeedTrace Pro. This tool is an improvement of the previous version...
1
by: =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= | last post by:
Hello, I am searching for a good profiling tool for C# which can be easily embedded into Visual Studio. My objective is to measure the times and counts of every method in my program. If...
0
by: L'eau Prosper Research | last post by:
Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases new TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set. L'eau Prosper Market...
0
by: L'eau Prosper Research | last post by:
NEW TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set By L'eau Prosper Research Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases...
9
by: Peter Duniho | last post by:
I'm especially hoping Ben Voigt and/or Bob Powell see this (I saw their names on the m.p.d.f.performance newsgroup :) ) I would have posted to the performance newsgroup, but I see very little on...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.