Corprofiler API vs Performance monitor (Get class loaded details) RRS feed

  • Question

  • Hi,

    In my .Net CLR Profiler am using the Corprofiler API to profile IIS web application (w3wp).
    I set the event mask as "COR_PRF_MONITOR_CLASS_LOADS" to collect class details using NativeCallback::ClassLoadFinished(ClassID classID, HRESULT hrStatus) callback method.
    Here, i am using a set to store the loaded class details(set<classId>). Remove a classid from the set in NativeCallback::ClassUnloadFinished(ClassID classID, HRESULT hrStatus) call back method.

    when i run the IIS web applicaiton,have the set size as (max): 14718.

    In performance monitor, Added the counter .NET CLR Loading and selected the same "w3wp" process.
    Here,i am getting Total class Loaded count as (max) : 6513.

    class loaded count
    corprofiler api  perfmon  = difference
    14718 - 6513      = 8205(classes) 

    My question is, why showing different values in corprofiler api and perfmon for the same IIS web appln?.
    which is giving correct value?

    Thanks in advance..

    Tuesday, December 19, 2017 7:27 AM

All replies

  • Hi Duraikannu Jeyamarni,

    Thank you for posting here.

    According to your description, your question is more related to IIS, you could post a new thread in IIS forum for suitable support.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions. 

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, December 20, 2017 7:55 AM