Professional Web Applications Themes

ASP.NET Profiling - ASP.NET General

Hello, In the VS.NET doentation 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!...

  1. #1

    Default ASP.NET Profiling

    Hello,

    In the VS.NET doentation

    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!
    Mark Guest

  2. #2

    Default RE: ASP.NET Profiling

    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/issues/01/12/Hood/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=en&lr=&ie=UTF-8&oe=UTF-8&threadm=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.

    Tian Guest

  3. #3

    Default RE: ASP.NET Profiling

    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!


     
    information with you: 
    Profiler object or its  
    ICorProfilerCallback. There are  
    lt.aspx 
    Studio .NET\FrameworkSDK\Tool Developers  
    Studio .NET\FrameworkSDK\Tool Developers  
    need to inject the  
    you the following  
    8&oe=UTF-8&threadm=098d01c2 
    3Fq%3DCor_Profiler% 
    3D098d01c2ecb1%25246477bb 
    or concerns. 
    and confers no rights. 
    Mark Guest

  4. #4

    Default RE: ASP.NET Profiling

    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!
    Natty Guest

Similar Threads

  1. Profiling Solutions
    By Jaroslav Danilov in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: May 8th, 12:26 PM
  2. Regexps Profiling
    By Igor Maximchuk in forum Ruby
    Replies: 0
    Last Post: November 6th, 09:31 PM
  3. Profiling
    By bobbyballgame in forum ASP
    Replies: 1
    Last Post: September 19th, 01:15 PM
  4. Profiling PHP
    By James Sleeman in forum PHP Development
    Replies: 4
    Last Post: July 15th, 08:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139